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;
> >
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);
>
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
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