projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
445251d
)
blk-mq-sched: Enable merging discard bio into request
author
Keith Busch
<keith.busch@intel.com>
Thu, 1 Feb 2018 21:41:15 +0000
(14:41 -0700)
committer
Jens 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
patch
|
blob
|
history
diff --git
a/block/blk-mq-sched.c
b/block/blk-mq-sched.c
index 55c0a745b4277ac86caa1b8eac68d48ccf6d9be9..25c14c58385c86ff3f5b33135d77fb3984eff185 100644
(file)
--- 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;
}