Skip to content

Commit

Permalink
dm: call blk_queue_split() to impose device limits on bios
Browse files Browse the repository at this point in the history
Otherwise the incoming bios, of various types, won't be shaped based on
the DM device's advertised limits.

Depends-on: af67c31 ("blk: remove bio_set arg from blk_queue_split()")
Fixes: 744889b ("block: don't deal with discard limit in blkdev_issue_discard()")
Cc: [email protected]
Signed-off-by: Mike Snitzer <[email protected]>
  • Loading branch information
snitm committed Dec 7, 2018
1 parent 687cf44 commit 89f5fa4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/md/dm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1593,6 +1593,8 @@ static blk_qc_t __split_and_process_bio(struct mapped_device *md,
return ret;
}

blk_queue_split(md->queue, &bio);

init_clone_info(&ci, md, map, bio);

if (bio->bi_opf & REQ_PREFLUSH) {
Expand Down

0 comments on commit 89f5fa4

Please sign in to comment.