Commit bea99a50 authored by Keith Busch's avatar Keith Busch Committed by Jens Axboe

blk-mq-sched: Enable merging discard bio into request

Signed-off-by: default avatarKeith Busch <keith.busch@intel.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 445251d0
...@@ -259,6 +259,8 @@ bool blk_mq_sched_try_merge(struct request_queue *q, struct bio *bio, ...@@ -259,6 +259,8 @@ bool blk_mq_sched_try_merge(struct request_queue *q, struct bio *bio,
if (!*merged_request) if (!*merged_request)
elv_merged_request(q, rq, ELEVATOR_FRONT_MERGE); elv_merged_request(q, rq, ELEVATOR_FRONT_MERGE);
return true; return true;
case ELEVATOR_DISCARD_MERGE:
return bio_attempt_discard_merge(q, rq, bio);
default: default:
return false; return false;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment