Re: [dm-devel] [PATCH 3/9] block: store a block_device pointer in struct bio

2020-12-04 Thread Keith Busch
On Tue, Dec 01, 2020 at 05:54:18PM +0100, Christoph Hellwig wrote: > diff --git a/block/blk.h b/block/blk.h > index 98f0b1ae264120..64dc8e5a3f44cb 100644 > --- a/block/blk.h > +++ b/block/blk.h > @@ -99,8 +99,8 @@ static inline void blk_rq_bio_prep(struct request *rq, > struct bio *bio, >

Re: [dm-devel] [PATCH 3/9] block: store a block_device pointer in struct bio

2020-12-03 Thread Ming Lei
On Thu, Dec 03, 2020 at 09:29:51AM +0100, Christoph Hellwig wrote: > On Thu, Dec 03, 2020 at 03:10:55PM +0800, Ming Lei wrote: > > On Thu, Dec 03, 2020 at 02:40:04PM +0800, Ming Lei wrote: > > > On Tue, Dec 01, 2020 at 05:54:18PM +0100, Christoph Hellwig wrote: > > > > Replace the gendisk pointer

Re: [dm-devel] [PATCH 3/9] block: store a block_device pointer in struct bio

2020-12-03 Thread Christoph Hellwig
On Thu, Dec 03, 2020 at 03:10:55PM +0800, Ming Lei wrote: > On Thu, Dec 03, 2020 at 02:40:04PM +0800, Ming Lei wrote: > > On Tue, Dec 01, 2020 at 05:54:18PM +0100, Christoph Hellwig wrote: > > > Replace the gendisk pointer in struct bio with a pointer to the newly > > > improved struct block

Re: [dm-devel] [PATCH 3/9] block: store a block_device pointer in struct bio

2020-12-02 Thread Ming Lei
On Thu, Dec 03, 2020 at 02:40:04PM +0800, Ming Lei wrote: > On Tue, Dec 01, 2020 at 05:54:18PM +0100, Christoph Hellwig wrote: > > Replace the gendisk pointer in struct bio with a pointer to the newly > > improved struct block device. From that the gendisk can be trivially > > accessed with an

Re: [dm-devel] [PATCH 3/9] block: store a block_device pointer in struct bio

2020-12-02 Thread Ming Lei
On Tue, Dec 01, 2020 at 05:54:18PM +0100, Christoph Hellwig wrote: > Replace the gendisk pointer in struct bio with a pointer to the newly > improved struct block device. From that the gendisk can be trivially > accessed with an extra indirection, but it also allows to directly > look up all

Re: [dm-devel] [PATCH 3/9] block: store a block_device pointer in struct bio

2020-12-02 Thread Tejun Heo
On Tue, Dec 01, 2020 at 05:54:18PM +0100, Christoph Hellwig wrote: > Replace the gendisk pointer in struct bio with a pointer to the newly > improved struct block device. From that the gendisk can be trivially > accessed with an extra indirection, but it also allows to directly > look up all

[dm-devel] [PATCH 3/9] block: store a block_device pointer in struct bio

2020-12-01 Thread Christoph Hellwig
Replace the gendisk pointer in struct bio with a pointer to the newly improved struct block device. From that the gendisk can be trivially accessed with an extra indirection, but it also allows to directly look up all information related to partition remapping. Signed-off-by: Christoph Hellwig