Re: [dm-devel] [PATCH v7 2/8] block: Add copy offload support infrastructure

2023-02-22 Thread Nitesh Shetty
On Wed, Feb 22, 2023 at 08:58:28AM +0900, Minwoo Im wrote: > > +/* > > + * @bdev_in: source block device > > + * @pos_in:source offset > > + * @bdev_out: destination block device > > + * @pos_out: destination offset > > @len is missing here. > acked > > + * @end_io:

Re: [dm-devel] [PATCH v7 2/8] block: Add copy offload support infrastructure

2023-02-21 Thread Minwoo Im
> +/* > + * @bdev_in: source block device > + * @pos_in: source offset > + * @bdev_out:destination block device > + * @pos_out: destination offset @len is missing here. > + * @end_io: end_io function to be called on completion of copy operation, > + * for synchronous operation

[dm-devel] [PATCH v7 2/8] block: Add copy offload support infrastructure

2023-02-20 Thread Nitesh Shetty
Introduce blkdev_issue_copy which takes similar arguments as copy_file_range and performs copy offload between two bdevs. Introduce REQ_COPY copy offload operation flag. Create a read-write bio pair with a token as payload and submitted to the device in order. Read request populates token with sour