diff options
author | Mike Snitzer <snitzer@redhat.com> | 2020-09-14 13:04:19 -0400 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2020-09-21 19:42:20 -0400 |
commit | ee1dfad5325ff1cfb2239e564cd411b3bfe8667a (patch) | |
tree | b585d0089216ae7feab34157b8432ae0edf3fa71 /virt | |
parent | beaeb4f39bc31d5a5eb6d05465a86af4fe147732 (diff) | |
download | linux-ee1dfad5325ff1cfb2239e564cd411b3bfe8667a.tar.bz2 |
dm: fix bio splitting and its bio completion order for regular IO
dm_queue_split() is removed because __split_and_process_bio() _must_
handle splitting bios to ensure proper bio submission and completion
ordering as a bio is split.
Otherwise, multiple recursive calls to ->submit_bio will cause multiple
split bios to be allocated from the same ->bio_split mempool at the same
time. This would result in deadlock in low memory conditions because no
progress could be made (only one bio is available in ->bio_split
mempool).
This fix has been verified to still fix the loss of performance, due
to excess splitting, that commit 120c9257f5f1 provided.
Fixes: 120c9257f5f1 ("Revert "dm: always call blk_queue_split() in dm_process_bio()"")
Cc: stable@vger.kernel.org # 5.0+, requires custom backport due to 5.9 changes
Reported-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions