]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
blk-mq-sched: Enable merging discard bio into request
authorKeith Busch <keith.busch@intel.com>
Thu, 1 Feb 2018 21:41:15 +0000 (14:41 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 1 Feb 2018 21:45:11 +0000 (14:45 -0700)
Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq-sched.c

index 55c0a745b4277ac86caa1b8eac68d48ccf6d9be9..25c14c58385c86ff3f5b33135d77fb3984eff185 100644 (file)
@@ -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;
        }