Re: [dm-devel] [PATCH v2 05/10] block: add emulation for copy

2022-02-20 Thread Nitesh Shetty
On Wed, Feb 16, 2022 at 08:32:45AM -0500, Mikulas Patocka wrote: > > > On Mon, 7 Feb 2022, Nitesh Shetty wrote: > > > + goto retry; > > + return PTR_ERR(bio); > > + } > > + > > + bio->bi_iter.bi_sector = sector >> SECTOR_SHIFT; > >

Re: [dm-devel] [PATCH v2 05/10] block: add emulation for copy

2022-02-16 Thread Mikulas Patocka
On Mon, 7 Feb 2022, Nitesh Shetty wrote: > + goto retry; > + return PTR_ERR(bio); > + } > + > + bio->bi_iter.bi_sector = sector >> SECTOR_SHIFT; > + bio->bi_opf = op; > + bio_set_dev(bio, bdev); >

Re: [dm-devel] [PATCH v2 05/10] block: add emulation for copy

2022-02-08 Thread kernel test robot
Hi Nitesh, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on axboe-block/for-next] [also build test WARNING on next-20220207] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as

[dm-devel] [PATCH v2 05/10] block: add emulation for copy

2022-02-08 Thread Nitesh Shetty
For the devices which does not support copy, copy emulation is added. Copy-emulation is implemented by reading from source ranges into memory and writing to the corresponding destination synchronously. TODO: Optimise emulation. Signed-off-by: Nitesh Shetty --- block/blk-lib.c | 119