dm: always call blk_queue_split() in dm_process_bio()
Do not just call blk_queue_split() if the bio is_abnormal_io().
Fixes: 568c73a355
("dm: update dm_process_bio() to split bio if in ->make_request_fn()")
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
This commit is contained in:
parent
0bdb50c531
commit
effd58c95f
@ -1735,9 +1735,8 @@ static blk_qc_t dm_process_bio(struct mapped_device *md,
|
|||||||
* won't be imposed.
|
* won't be imposed.
|
||||||
*/
|
*/
|
||||||
if (current->bio_list) {
|
if (current->bio_list) {
|
||||||
if (is_abnormal_io(bio))
|
blk_queue_split(md->queue, &bio);
|
||||||
blk_queue_split(md->queue, &bio);
|
if (!is_abnormal_io(bio))
|
||||||
else
|
|
||||||
dm_queue_split(md, ti, &bio);
|
dm_queue_split(md, ti, &bio);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user