diff options
author | Ming Lei <ming.lei@canonical.com> | 2015-10-20 17:13:53 +0200 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2015-10-21 23:00:51 +0200 |
commit | 6ac45aeb6bcad38a2783a7d6e5da4c469497eeb0 (patch) | |
tree | 666a97a544ba4a465be7839989fce19746c73a8a /block/blk-merge.c | |
parent | block: setup bi_phys_segments after splitting (diff) | |
download | linux-6ac45aeb6bcad38a2783a7d6e5da4c469497eeb0.tar.xz linux-6ac45aeb6bcad38a2783a7d6e5da4c469497eeb0.zip |
block: avoid to merge splitted bio
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>
Diffstat (limited to 'block/blk-merge.c')
-rw-r--r-- | block/blk-merge.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/block/blk-merge.c b/block/blk-merge.c index 22293fdf6514..de5716d8e525 100644 --- 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; |