]> git.baikalelectronics.ru Git - kernel.git/commit
dm: fix bio_set allocation
authorChristoph Hellwig <hch@lst.de>
Wed, 8 Jun 2022 06:34:06 +0000 (08:34 +0200)
committerMike Snitzer <snitzer@kernel.org>
Wed, 8 Jun 2022 18:04:14 +0000 (14:04 -0400)
commitcc074b5c849ad41d0980719a954b7a82631e9a20
treea9661e0821f7c983ae0c799f70f862ee2d58533b
parentf040cca4b0da0180bf9de9141ef5c95f60f85182
dm: fix bio_set allocation

The use of bioset_init_from_src mean that the pre-allocated pools weren't
used for anything except parameter passing, and the integrity pool
creation got completely lost for the actual live mapped_device.  Fix that
by assigning the actual preallocated dm_md_mempools to the mapped_device
and using that for I/O instead of creating new mempools.

Fixes: 8ae9a7ba07f7 ("dm: use bioset_init_from_src() to copy bio_set")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
drivers/md/dm-core.h
drivers/md/dm-rq.c
drivers/md/dm-table.c
drivers/md/dm.c
drivers/md/dm.h