diff options
author | Mike Snitzer <snitzer@kernel.org> | 2023-03-25 22:52:01 +0100 |
---|---|---|
committer | Mike Snitzer <snitzer@kernel.org> | 2023-03-30 21:57:51 +0200 |
commit | 3f8d3f5432078a558151e27230e20bcf93c23ffe (patch) | |
tree | 9c6ae4c1ea3197281a7dad244a55c503dad30a8a /drivers/md/dm.h | |
parent | dm bio prison v1: improve concurrent IO performance (diff) | |
download | linux-3f8d3f5432078a558151e27230e20bcf93c23ffe.tar.xz linux-3f8d3f5432078a558151e27230e20bcf93c23ffe.zip |
dm bio prison v1: add dm_cell_key_has_valid_range
Don't have bio_detain() BUG_ON if a dm_cell_key is beyond
BIO_PRISON_MAX_RANGE or spans a boundary.
Update dm-thin.c:build_key() to use dm_cell_key_has_valid_range() which
will do this checking without using BUG_ON. Also update
process_discard_bio() to check the discard bio that DM core passes in
(having first imposed max_discard_granularity based splitting).
dm_cell_key_has_valid_range() will merely WARN_ON_ONCE if it returns
false because if it does: it is programmer error that should be caught
with proper testing. So relax the BUG_ONs to be WARN_ON_ONCE.
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Diffstat (limited to 'drivers/md/dm.h')
0 files changed, 0 insertions, 0 deletions