diff options
author | Damien Le Moal <damien.lemoal@wdc.com> | 2018-11-20 10:52:37 +0900 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-11-19 19:03:49 -0700 |
commit | 668ffc03418bc779f699797c72ecf968cd6525a9 (patch) | |
tree | 1392526ca5bb0cbe189e7d5ff5d469c51d2ef231 /block/blk-core.c | |
parent | 76dc891395dc61e92e2ff31b6161815ce5eb715b (diff) | |
download | linux-668ffc03418bc779f699797c72ecf968cd6525a9.tar.gz linux-668ffc03418bc779f699797c72ecf968cd6525a9.tar.bz2 linux-668ffc03418bc779f699797c72ecf968cd6525a9.zip |
block: prevent merging of requests with different priorities
Growing in size a high priority request by merging it with a lower
priority BIO or request will increase the request execution time. This
is the opposite result of the desired effect of high I/O priorities,
namely getting low I/O latencies. Prevent merging of requests and BIOs
that have different I/O priorities to fix this.
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-core.c')
-rw-r--r-- | block/blk-core.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/block/blk-core.c b/block/blk-core.c index 4450d3c08f25..dde30b08aa14 100644 --- a/block/blk-core.c +++ b/block/blk-core.c @@ -662,7 +662,6 @@ bool bio_attempt_back_merge(struct request_queue *q, struct request *req, req->biotail->bi_next = bio; req->biotail = bio; req->__data_len += bio->bi_iter.bi_size; - req->ioprio = ioprio_best(req->ioprio, bio_prio(bio)); blk_account_io_start(req, false); return true; @@ -686,7 +685,6 @@ bool bio_attempt_front_merge(struct request_queue *q, struct request *req, req->__sector = bio->bi_iter.bi_sector; req->__data_len += bio->bi_iter.bi_size; - req->ioprio = ioprio_best(req->ioprio, bio_prio(bio)); blk_account_io_start(req, false); return true; @@ -706,7 +704,6 @@ bool bio_attempt_discard_merge(struct request_queue *q, struct request *req, req->biotail->bi_next = bio; req->biotail = bio; req->__data_len += bio->bi_iter.bi_size; - req->ioprio = ioprio_best(req->ioprio, bio_prio(bio)); req->nr_phys_segments = segments + 1; blk_account_io_start(req, false); |