Re: [dm-devel] [PATCH v16 03/12] block: add copy offload support

2023-09-25 Thread Jinyoung Choi
> +/* > + * This must only be called once all bios have been issued so that the > refcount > + * can only decrease. This just waits for all bios to complete. > + * Returns the length of bytes copied or error > + */ > +static ssize_t blkdev_copy_wait_io_completion(struct blkdev_copy_io *cio) Hi, N

Re: [dm-devel] [PATCH v16 03/12] block: add copy offload support

2023-09-23 Thread Nitesh Shetty
On Fri, Sep 22, 2023 at 06:56:50PM +0900, Jinyoung Choi wrote: > > +/* > > + * This must only be called once all bios have been issued so that the > > refcount > > + * can only decrease. This just waits for all bios to complete. > > + * Returns the length of bytes copied or error > > + */ > > +sta

[dm-devel] [PATCH v16 03/12] block: add copy offload support

2023-09-20 Thread Nitesh Shetty
Introduce blkdev_copy_offload to perform copy offload. Issue REQ_OP_COPY_SRC with source info along with taking a plug. This flows till request layer and waits for dst bio to arrive. Issue REQ_OP_COPY_DST with destination info and this bio reaches request layer and merges with src request. For any