提交 6ac45aeb 编写于 作者: M Ming Lei 提交者: Jens Axboe

block: avoid to merge splitted bio

The splitted bio has been already too fat to merge, so mark it
as NOMERGE.
Reviewed-by: NJeff Moyer <jmoyer@redhat.com>
Signed-off-by: NMing Lei <ming.lei@canonical.com>
Signed-off-by: NJens Axboe <axboe@fb.com>
上级 bdced438
...@@ -139,6 +139,9 @@ void blk_queue_split(struct request_queue *q, struct bio **bio, ...@@ -139,6 +139,9 @@ void blk_queue_split(struct request_queue *q, struct bio **bio,
bio_set_flag(res, BIO_SEG_VALID); bio_set_flag(res, BIO_SEG_VALID);
if (split) { if (split) {
/* there isn't chance to merge the splitted bio */
split->bi_rw |= REQ_NOMERGE;
bio_chain(split, *bio); bio_chain(split, *bio);
generic_make_request(*bio); generic_make_request(*bio);
*bio = split; *bio = split;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册