[dm-devel] [RFC PATCH v5 2/4] block: add simple copy support

2021-02-19 Thread SelvaKumar S
Add new BLKCOPY ioctl that offloads copying of one or more sources ranges to a destination in the device. Accepts a 'copy_range' structure that contains destination (in sectors), no of sources and pointer to the array of source ranges. Each source range is represented by 'range_entry' that contains

Re: [dm-devel] [RFC PATCH v5 2/4] block: add simple copy support

2021-02-19 Thread Damien Le Moal
On 2021/02/20 11:01, SelvaKumar S wrote: > Add new BLKCOPY ioctl that offloads copying of one or more sources > ranges to a destination in the device. Accepts a 'copy_range' structure > that contains destination (in sectors), no of sources and pointer to the > array of source ranges. Each source ra

Re: [dm-devel] [RFC PATCH v5 2/4] block: add simple copy support

2021-04-07 Thread Selva Jove
Initially I started moving the dm-kcopyd interface to the block layer as a generic interface. Once I dig deeper in dm-kcopyd code, I figured that dm-kcopyd is tightly coupled with dm_io() To move dm-kcopyd to block layer, it would also require dm_io code to be moved to block layer. It would cause

Re: [dm-devel] [RFC PATCH v5 2/4] block: add simple copy support

2021-04-11 Thread Damien Le Moal
On 2021/04/07 20:33, Selva Jove wrote: > Initially I started moving the dm-kcopyd interface to the block layer > as a generic interface. > Once I dig deeper in dm-kcopyd code, I figured that dm-kcopyd is > tightly coupled with dm_io() > > To move dm-kcopyd to block layer, it would also require dm_

Re: [dm-devel] [RFC PATCH v5 2/4] block: add simple copy support

2021-04-12 Thread Selva Jove
On Mon, Apr 12, 2021 at 5:55 AM Damien Le Moal wrote: > > On 2021/04/07 20:33, Selva Jove wrote: > > Initially I started moving the dm-kcopyd interface to the block layer > > as a generic interface. > > Once I dig deeper in dm-kcopyd code, I figured that dm-kcopyd is > > tightly coupled with dm_io

Re: [dm-devel] [RFC PATCH v5 2/4] block: add simple copy support

2021-04-12 Thread Damien Le Moal
On 2021/04/12 23:35, Selva Jove wrote: > On Mon, Apr 12, 2021 at 5:55 AM Damien Le Moal wrote: >> >> On 2021/04/07 20:33, Selva Jove wrote: >>> Initially I started moving the dm-kcopyd interface to the block layer >>> as a generic interface. >>> Once I dig deeper in dm-kcopyd code, I figured that

Re: [dm-devel] [RFC PATCH v5 2/4] block: add simple copy support

2021-04-14 Thread Selva Jove
I agree with you. Will remove BLKDEV_COPY_NOEMULATION. On Tue, Apr 13, 2021 at 6:03 AM Damien Le Moal wrote: > > On 2021/04/12 23:35, Selva Jove wrote: > > On Mon, Apr 12, 2021 at 5:55 AM Damien Le Moal > > wrote: > >> > >> On 2021/04/07 20:33, Selva Jove wrote: > >>> Initially I started moving