summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm.h
diff options
context:
space:
mode:
authorMike Snitzer <snitzer@redhat.com>2017-12-08 20:40:52 +0100
committerMike Snitzer <snitzer@redhat.com>2017-12-13 18:16:00 +0100
commit0776aa0e30aa31b2fad606457e9d3faf39d88314 (patch)
tree251b9ea6e8630a9267a9bbf757f4aa357b736757 /drivers/md/dm.h
parentdm: remove BIOSET_NEED_RESCUER based dm_offload infrastructure (diff)
downloadlinux-0776aa0e30aa31b2fad606457e9d3faf39d88314.tar.xz
linux-0776aa0e30aa31b2fad606457e9d3faf39d88314.zip
dm: ensure bio-based DM's bioset and io_pool support targets' maximum IOs
alloc_multiple_bios() assumes it can allocate the requested number of bios but until now there was no gaurantee that the mempools would be accomodating. Suggested-by: Mikulas Patocka <mpatocka@redhat.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/dm.h')
-rw-r--r--drivers/md/dm.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/md/dm.h b/drivers/md/dm.h
index 36399bb875dd..7c66c316add3 100644
--- a/drivers/md/dm.h
+++ b/drivers/md/dm.h
@@ -206,7 +206,8 @@ void dm_kcopyd_exit(void);
* Mempool operations
*/
struct dm_md_mempools *dm_alloc_md_mempools(struct mapped_device *md, enum dm_queue_mode type,
- unsigned integrity, unsigned per_bio_data_size);
+ unsigned integrity, unsigned per_bio_data_size,
+ unsigned min_pool_size);
void dm_free_md_mempools(struct dm_md_mempools *pools);
/*