From: Mike Snitzer Date: Mon, 3 Dec 2018 21:47:21 +0000 (-0500) Subject: dm: call blk_queue_split() to impose device limits on bios X-Git-Tag: rel_imx_4.19.35_1.1.0~7766 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=b543b5c0ac1c78c81f1ab3270d9464f6f45fd09e;p=linux.git dm: call blk_queue_split() to impose device limits on bios commit 89f5fa47476eda56402e29fff3c5097f5c2a1e19 upstream. 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/md/dm.c b/drivers/md/dm.c index 45abb54037fc..07d2949a8746 100644 --- a/drivers/md/dm.c +++ b/drivers/md/dm.c @@ -1592,6 +1592,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) {