Commit effd58c9 authored by Mike Snitzer's avatar Mike Snitzer

dm: always call blk_queue_split() in dm_process_bio()

Do not just call blk_queue_split() if the bio is_abnormal_io().

Fixes: 568c73a3 ("dm: update dm_process_bio() to split bio if in ->make_request_fn()")
Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
parent 0bdb50c5
......@@ -1735,9 +1735,8 @@ static blk_qc_t dm_process_bio(struct mapped_device *md,
* won't be imposed.
*/
if (current->bio_list) {
if (is_abnormal_io(bio))
blk_queue_split(md->queue, &bio);
else
blk_queue_split(md->queue, &bio);
if (!is_abnormal_io(bio))
dm_queue_split(md, ti, &bio);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment