]> git.baikalelectronics.ru Git - kernel.git/commit
dm kcopyd: add WRITE SAME support to dm_kcopyd_zero
authorMike Snitzer <snitzer@redhat.com>
Fri, 21 Dec 2012 20:23:37 +0000 (20:23 +0000)
committerAlasdair G Kergon <agk@redhat.com>
Fri, 21 Dec 2012 20:23:37 +0000 (20:23 +0000)
commit0812e15653f5484c65e86a10ef6d48280ccdb67f
tree6ab32a9b9699656c8d9147b38a776f615c1c737a
parent30da482554a678833e04d68ff6098034fa7a01d4
dm kcopyd: add WRITE SAME support to dm_kcopyd_zero

Add WRITE SAME support to dm-io and make it accessible to
dm_kcopyd_zero().  dm_kcopyd_zero() provides an asynchronous interface
whereas the blkdev_issue_write_same() interface is synchronous.

WRITE SAME is a SCSI command that can be leveraged for more efficient
zeroing of a specified logical extent of a device which supports it.
Only a single zeroed logical block is transfered to the target for each
WRITE SAME and the target then writes that same block across the
specified extent.

The dm thin target uses this.

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-io.c
drivers/md/dm-kcopyd.c
drivers/md/dm-thin.c