Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

block: avoid to merge splitted bio



The splitted bio has been already too fat to merge, so mark it
as NOMERGE.

Reviewed-by: default avatarJeff Moyer <jmoyer@redhat.com>
Signed-off-by: default avatarMing Lei <ming.lei@canonical.com>
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent bdced438
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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;