projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bdced43
)
block: avoid to merge splitted bio
author
Ming Lei
<ming.lei@canonical.com>
Tue, 20 Oct 2015 15:13:53 +0000
(23:13 +0800)
committer
Jens Axboe
<axboe@fb.com>
Wed, 21 Oct 2015 21:00:51 +0000
(15:00 -0600)
The splitted bio has been already too fat to merge, so mark it
as NOMERGE.
Reviewed-by: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: Ming Lei <ming.lei@canonical.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-merge.c
patch
|
blob
|
history
diff --git
a/block/blk-merge.c
b/block/blk-merge.c
index 22293fdf651433837d93830ec9aa7970197eced8..de5716d8e525969e7849767a775aabec9e4d8b96 100644
(file)
--- a/
block/blk-merge.c
+++ b/
block/blk-merge.c
@@
-139,6
+139,9
@@
void blk_queue_split(struct request_queue *q, struct bio **bio,
bio_set_flag(res, BIO_SEG_VALID);
if (split) {
+ /* there isn't chance to merge the splitted bio */
+ split->bi_rw |= REQ_NOMERGE;
+
bio_chain(split, *bio);
generic_make_request(*bio);
*bio = split;