[dm-devel] [PATCH v3 2/3] block: allow use of per-cpu bio alloc cache by block drivers

Christoph Hellwig hch at lst.de
Fri Mar 25 05:35:10 UTC 2022


On Thu, Mar 24, 2022 at 04:35:25PM -0400, Mike Snitzer wrote:
> Refine per-cpu bio alloc cache interfaces so that DM and other block
> drivers can properly create and use the cache:
> 
> DM uses bioset_init_from_src() to do its final bioset initialization,
> so must update bioset_init_from_src() to set BIOSET_PERCPU_CACHE if
> %src bioset has a cache.
> 
> Also move bio_clear_polled() to include/linux/bio.h to allow users
> outside of block core.
> 
> Signed-off-by: Mike Snitzer <snitzer at kernel.org>

Looks good:

Reviewed-by: Christoph Hellwig <hch at lst.de>



More information about the dm-devel mailing list