diff options
author | Mike Snitzer <snitzer@kernel.org> | 2022-03-24 19:36:47 +0100 |
---|---|---|
committer | Mike Snitzer <snitzer@kernel.org> | 2022-05-05 23:31:33 +0200 |
commit | cfc97abcbe0b1ffac441202fe330e697370ecbcc (patch) | |
tree | a85cd5742071111b85e8f6b0f0fb46ddc5a7bd91 /drivers/md/dm.h | |
parent | block: improve the error message from bio_check_eod (diff) | |
download | linux-cfc97abcbe0b1ffac441202fe330e697370ecbcc.tar.xz linux-cfc97abcbe0b1ffac441202fe330e697370ecbcc.zip |
dm: conditionally enable BIOSET_PERCPU_CACHE for dm_io bioset
A bioset's per-cpu alloc cache may have broader utility in the future
but for now constrain it to being tightly coupled to QUEUE_FLAG_POLL.
Also change dm_io_complete() to use bio_clear_polled() so that it
properly clears all associated bio state on requeue.
This commit improves DM's hipri bio polling (REQ_POLLED) perf by
7 - 20% depending on the system.
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Diffstat (limited to '')
-rw-r--r-- | drivers/md/dm.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/dm.h b/drivers/md/dm.h index 9013dc1a7b00..3f89664fea01 100644 --- a/drivers/md/dm.h +++ b/drivers/md/dm.h @@ -221,8 +221,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 min_pool_size); + unsigned per_io_data_size, unsigned min_pool_size, + bool integrity, bool poll); void dm_free_md_mempools(struct dm_md_mempools *pools); /* |