On Wed, 2014-05-28 at 23:52 -0400, Martin K. Petersen wrote: > Many modern SCSI devices support copy offloading operations in which one > can copy a block range from one LUN to another without the need for data > to be copied sent to the host and back. This is particularly useful for > things like cloning LUNs or virtual machine images. > > Implement support for REQ_COPY commands in the block layer: > > - Add max_copy_sectors queue limits and handle stacking > > - Expose this parameter in sysfs in bytes (copy_max_bytes) > > - Add special casing for REQ_COPY in merging and mapping functions > > - Introduce a bio_copy descriptor hanging off of bio->bi_special. This > descriptor contains the source bdev and source sector for the copy > operation. Target bdev/sector/size are described by the bio proper. > > Signed-off-by: Martin K. Petersen <martin.petersen@xxxxxxxxxx> > --- > Documentation/ABI/testing/sysfs-block | 9 +++++++++ > block/blk-core.c | 5 +++++ > block/blk-merge.c | 7 ++----- > block/blk-settings.c | 15 +++++++++++++++ > block/blk-sysfs.c | 10 ++++++++++ > include/linux/bio.h | 15 +++++++++++++-- > include/linux/blk_types.h | 15 ++++++++++++--- > include/linux/blkdev.h | 13 +++++++++++++ > 8 files changed, 79 insertions(+), 10 deletions(-) Reviewed-by: Nicholas Bellinger <nab@xxxxxxxxxxxxxxx> -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html