diff options
author | Keith Busch <keith.busch@intel.com> | 2018-02-01 14:41:15 -0700 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-02-01 14:45:11 -0700 |
commit | bea99a500773fdfdb16b7dbfbaa00af7a6f0dc3b (patch) | |
tree | 1290fec98ae3751dd6ea9cc787c73c5ece62f0ff /block | |
parent | 445251d0f4d329aa061f323546cd6388a3bb7ab5 (diff) | |
download | linux-bea99a500773fdfdb16b7dbfbaa00af7a6f0dc3b.tar.bz2 |
blk-mq-sched: Enable merging discard bio into request
Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block')
-rw-r--r-- | block/blk-mq-sched.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/block/blk-mq-sched.c b/block/blk-mq-sched.c index 55c0a745b427..25c14c58385c 100644 --- a/block/blk-mq-sched.c +++ b/block/blk-mq-sched.c @@ -259,6 +259,8 @@ bool blk_mq_sched_try_merge(struct request_queue *q, struct bio *bio, if (!*merged_request) elv_merged_request(q, rq, ELEVATOR_FRONT_MERGE); return true; + case ELEVATOR_DISCARD_MERGE: + return bio_attempt_discard_merge(q, rq, bio); default: return false; } |