During a recent discussion about peer-to-peer PCIe transfers it was brought up that it would be desirable to invoke this functionality from user space. One possible approach is to add support for an "extended copy" operation to the block layer and to make it possible to use that functionality from user space. So far two different approaches have been proposed to add such functionality to the block layer: 1. Implement extended copy as a single block layer operation. This is not compatible with the current device mapper design. 2. Implement extended copy as two separate block layer operations (read + write). With this approach there is a risk of starvation, namely if resources are low and only one of the two operations is propagated down to lower layers. I propose to discuss this further during the LSF/MM, e.g. whether or not we should modify the device mapper such that approach (1) can be followed. More information is available at: * Jake Edge, Copy Offload, LWN.net, 24 April 2013 (https://lwn.net/Articles/548347/). * Jake Edge, Copy Offload, LWN.net, 2 April 2014 (https://lwn.net/Articles/592094/). * Martin Petersen, Copy Offload, linux-scsi, 28 May 2014 (https://www.mail-archive.com/linux-scsi@xxxxxxxxxxxxxxx/msg28998.html). * Mikulas Patocka, ANNOUNCE: SCSI XCOPY support for the kernel and device mapper, 15 July 2014 (https://www.mail-archive.com/linux-kernel@xxxxxxxxxxxxxxx/msg686111.html). * Mikulas Patocka, SCSI XCOPY support for the kernel and device mapper, linux-scsi mailing list, 22 October 2014 (https://www.mail-archive.com/linux-kernel@xxxxxxxxxxxxxxx/msg749113.html / https://lkml.org/lkml/2014/10/22/317 / http://thread.gmane.org/gmane.linux.kernel/1811151 / http://people.redhat.com/~mpatocka/patches/kernel/xcopy/current/). * Jake Edge, Copy Offload, 25 March 2015 (https://lwn.net/Articles/637436/). * Mikulas Patocka, [PATCH 0/15] copy offload patches, 10 December 2015 (https://www.mail-archive.com/linux-kernel@xxxxxxxxxxxxxxx/msg1039890.html / https://lkml.org/lkml/2015/12/10/517 / https://www.redhat.com/archives/dm-devel/2015-December/msg00117.html). * Logan Gunthorpe, [RFC 0/8] Copy Offload with Peer-to-Peer PCI Memory, 30 March 2017 (https://www.mail-archive.com/linux-kernel@xxxxxxxxxxxxxxx/msg1367097.html). * Logan Gunthorpe, [PATCH v2 00/10] Copy Offload in NVMe Fabrics with P2P PCI Memory, 28 February 2018 (https://www.mail-archive.com/linux-kernel@xxxxxxxxxxxxxxx/msg1623231.html). * Logan Gunthorpe, [PATCH v3 00/11] Copy Offload in NVMe Fabrics with P2P PCI Memory, 12 March 2018 (https://www.mail-archive.com/linux-kernel@xxxxxxxxxxxxxxx/msg1634545.html). -- dm-devel mailing list dm-devel@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/dm-devel