[dm-devel] can we reduce bio_set_dev overhead due to bio_associate_blkg?

Christoph Hellwig hch at infradead.org
Thu Mar 31 09:15:24 UTC 2022


On Wed, Mar 30, 2022 at 10:52:13PM -0700, Dennis Zhou wrote:
> I took a quick look. It seems with the new interface,
> bio_clone_blkg_association() is unnecessary given the correct
> association should be derived from the bio_alloc*() calls with the
> passed in bdev. Also, blkcg_bio_issue_init() in clone seems wrong.

Yes, I think you are right.

> Maybe the right thing to do here for md-linear and btrfs (what I've
> looked at) is to delay cloning until the map occurs and the right device
> is already in hand?

That would in general be the preferred option where possible.



More information about the dm-devel mailing list