Commit 6ac45aeb authored by Ming Lei's avatar Ming Lei Committed by Jens Axboe

block: avoid to merge splitted bio

The splitted bio has been already too fat to merge, so mark it
Reviewed-by: default avatarJeff Moyer <>
Signed-off-by: default avatarMing Lei <>
Signed-off-by: default avatarJens Axboe <>
parent bdced438
......@@ -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);
*bio = split;
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