summary refs log tree commit diff
path: root/drivers/md/dm.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2022-06-08 08:34:06 +0200
committerMike Snitzer <snitzer@kernel.org>2022-06-08 14:04:14 -0400
commit29dec90a0f1d961b93f34f910e9319d8cb23edbd (patch)
treea9661e0821f7c983ae0c799f70f862ee2d58533b /drivers/md/dm.h
parentf2906aa863381afb0015a9eb7fefad885d4e5a56 (diff)
downloadlinux-29dec90a0f1d961b93f34f910e9319d8cb23edbd.tar.gz
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: 2a2a4c510b76 ("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>
Diffstat (limited to 'drivers/md/dm.h')
-rw-r--r--drivers/md/dm.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/md/dm.h b/drivers/md/dm.h
index 3f89664fea01..a8405ce305a9 100644
--- a/drivers/md/dm.h
+++ b/drivers/md/dm.h
@@ -71,8 +71,6 @@ struct dm_target *dm_table_get_immutable_target(struct dm_table *t);
 struct dm_target *dm_table_get_wildcard_target(struct dm_table *t);
 bool dm_table_bio_based(struct dm_table *t);
 bool dm_table_request_based(struct dm_table *t);
-void dm_table_free_md_mempools(struct dm_table *t);
-struct dm_md_mempools *dm_table_get_md_mempools(struct dm_table *t);
 
 void dm_lock_md_type(struct mapped_device *md);
 void dm_unlock_md_type(struct mapped_device *md);