diff options
author | Mike Snitzer <snitzer@redhat.com> | 2019-02-22 15:52:02 +0100 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2019-03-05 20:53:32 +0100 |
commit | effd58c95f277744f75d6e08819ac859dbcbd351 (patch) | |
tree | ab920dba4b609f6376ec51b43eef7bdb72180220 /drivers/md | |
parent | dm: fix to_sector() for 32bit (diff) | |
download | linux-effd58c95f277744f75d6e08819ac859dbcbd351.tar.xz linux-effd58c95f277744f75d6e08819ac859dbcbd351.zip |
dm: always call blk_queue_split() in dm_process_bio()
Do not just call blk_queue_split() if the bio is_abnormal_io().
Fixes: 568c73a355e ("dm: update dm_process_bio() to split bio if in ->make_request_fn()")
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/dm.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/md/dm.c b/drivers/md/dm.c index d8a844c522e6..68d24056d0b1 100644 --- a/drivers/md/dm.c +++ b/drivers/md/dm.c @@ -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); } |