aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Snitzer <snitzer@redhat.com>2018-12-03 16:47:21 -0500
committerMike Snitzer <snitzer@redhat.com>2018-12-07 16:04:22 -0500
commit89f5fa47476eda56402e29fff3c5097f5c2a1e19 (patch)
treed32383c26fc1a0cc0f7ae31b1ea7be3de723115a
parent687cf4412a343a63928a5c9d91bdc0f522939d43 (diff)
downloadlinux-89f5fa47476eda56402e29fff3c5097f5c2a1e19.tar.gz
dm: call blk_queue_split() to impose device limits on bios
Otherwise the incoming bios, of various types, won't be shaped based on the DM device's advertised limits. Depends-on: af67c31fba ("blk: remove bio_set arg from blk_queue_split()") Fixes: 744889b7cb ("block: don't deal with discard limit in blkdev_issue_discard()") Cc: stable@vger.kernel.org Signed-off-by: Mike Snitzer <snitzer@redhat.com>
-rw-r--r--drivers/md/dm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/md/dm.c b/drivers/md/dm.c
index c510179a7f845..63a7c416b224e 100644
--- a/drivers/md/dm.c
+++ b/drivers/md/dm.c
@@ -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) {