Skip to content

Commit

Permalink
dm: always call blk_queue_split() in dm_process_bio()
Browse files Browse the repository at this point in the history
Do not just call blk_queue_split() if the bio is_abnormal_io().

Fixes: 568c73a ("dm: update dm_process_bio() to split bio if in ->make_request_fn()")
Signed-off-by: Mike Snitzer <[email protected]>
  • Loading branch information
snitm committed Mar 5, 2019
1 parent 0bdb50c commit effd58c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/md/dm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit effd58c

Please sign in to comment.