]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Add a num_write_bios function to struct target.
authorAlasdair G Kergon <agk@redhat.com>
Sun, 17 Feb 2013 23:03:35 +0000 (10:03 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Sun, 17 Feb 2013 23:04:52 +0000 (10:04 +1100)
commit150cc909902a4759bbabe8f46b894a2d85dfaf9a
tree8cbcabb6024d8751817f1b78bc45fc22ab9c9c3a
parent491d0377a7f5bb6dd6e8e27bc15f0f9f7310d029
Add a num_write_bios function to struct target.

If an instance of a target sets this, it will be queried before the
target's mapping function is called on a write bio, and the response
controls the number of copies of the write bio that the target will
receive.

This provides a convenient way for a target to send the same data to
more than one device.  The new cache target uses this in writethrough
mode, to send the data both to the cache and the backing device.

Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm.c
include/linux/device-mapper.h