[PATCH v3 00/10] Add Copy offload support

Nitesh Shetty posted 10 patches 3 months ago
block/blk-lib.c                   | 346 ++++++++++++++++++++++++++++++
block/blk-map.c                   |   2 +-
block/blk-settings.c              |  59 +++++
block/blk-sysfs.c                 | 138 ++++++++++++
block/blk.h                       |   2 +
block/ioctl.c                     |  32 +++
drivers/md/dm-kcopyd.c            |  55 ++++-
drivers/md/dm-linear.c            |   1 +
drivers/md/dm-table.c             |  45 ++++
drivers/md/dm.c                   |   6 +
drivers/nvme/host/core.c          | 119 +++++++++-
drivers/nvme/host/fc.c            |   4 +
drivers/nvme/host/nvme.h          |   7 +
drivers/nvme/host/pci.c           |   9 +
drivers/nvme/host/rdma.c          |   6 +
drivers/nvme/host/tcp.c           |   8 +
drivers/nvme/host/trace.c         |  19 ++
drivers/nvme/target/admin-cmd.c   |   8 +-
drivers/nvme/target/io-cmd-bdev.c |  65 ++++++
drivers/nvme/target/io-cmd-file.c |  48 +++++
include/linux/blk_types.h         |  21 ++
include/linux/blkdev.h            |  17 ++
include/linux/device-mapper.h     |   5 +
include/linux/nvme.h              |  43 +++-
include/uapi/linux/fs.h           |  23 ++
25 files changed, 1074 insertions(+), 14 deletions(-)
[PATCH v3 00/10] Add Copy offload support
Posted by Nitesh Shetty 3 months ago
The patch series covers the points discussed in November 2021 virtual call
[LSF/MM/BFP TOPIC] Storage: Copy Offload[0].
We have covered the Initial agreed requirements in this patchset.
Patchset borrows Mikulas's token based approach for 2 bdev
implementation.

Overall series supports –

1. Driver
- NVMe Copy command (single NS), including support in nvme-target (for
	block and file backend)

2. Block layer
- Block-generic copy (REQ_COPY flag), with interface accommodating
	two block-devs, and multi-source/destination interface
- Emulation, when offload is natively absent
- dm-linear support (for cases not requiring split)

3. User-interface
- new ioctl

4. In-kernel user
- dm-kcopyd

[0] https://lore.kernel.org/linux-nvme/CA+1E3rJ7BZ7LjQXXTdX+-0Edz=zT14mmPGMiVCzUgB33C60tbQ@mail.gmail.com/

Changes in v3:
- fixed possible race condition reported by Damien Le Moal
- new sysfs controls as suggested by Damien Le Moal
- fixed possible memory leak reported by Dan Carpenter, lkp
- minor fixes


Arnav Dawn (1):
  nvmet: add copy command support for bdev and file ns

Nitesh Shetty (6):
  block: Introduce queue limits for copy-offload support
  block: Add copy offload support infrastructure
  block: Introduce a new ioctl for copy
  block: add emulation for copy
  dm: Add support for copy offload.
  dm: Enable copy offload for dm-linear target

SelvaKumar S (3):
  block: make bio_map_kern() non static
  nvme: add copy offload support
  dm kcopyd: use copy offload support

 block/blk-lib.c                   | 346 ++++++++++++++++++++++++++++++
 block/blk-map.c                   |   2 +-
 block/blk-settings.c              |  59 +++++
 block/blk-sysfs.c                 | 138 ++++++++++++
 block/blk.h                       |   2 +
 block/ioctl.c                     |  32 +++
 drivers/md/dm-kcopyd.c            |  55 ++++-
 drivers/md/dm-linear.c            |   1 +
 drivers/md/dm-table.c             |  45 ++++
 drivers/md/dm.c                   |   6 +
 drivers/nvme/host/core.c          | 119 +++++++++-
 drivers/nvme/host/fc.c            |   4 +
 drivers/nvme/host/nvme.h          |   7 +
 drivers/nvme/host/pci.c           |   9 +
 drivers/nvme/host/rdma.c          |   6 +
 drivers/nvme/host/tcp.c           |   8 +
 drivers/nvme/host/trace.c         |  19 ++
 drivers/nvme/target/admin-cmd.c   |   8 +-
 drivers/nvme/target/io-cmd-bdev.c |  65 ++++++
 drivers/nvme/target/io-cmd-file.c |  48 +++++
 include/linux/blk_types.h         |  21 ++
 include/linux/blkdev.h            |  17 ++
 include/linux/device-mapper.h     |   5 +
 include/linux/nvme.h              |  43 +++-
 include/uapi/linux/fs.h           |  23 ++
 25 files changed, 1074 insertions(+), 14 deletions(-)


base-commit: 23a3fe5e6bb58304e662c604b86bc1264453e888
-- 
2.30.0-rc0