]> git.baikalelectronics.ru Git - kernel.git/commit
block, bfq: fix sequential rq detection in rate estimation
authorPaolo Valente <paolo.valente@linaro.org>
Tue, 29 Jan 2019 11:06:33 +0000 (12:06 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 31 Jan 2019 19:50:23 +0000 (12:50 -0700)
commit9df7d383cf113d2e0c9c71828f00c1886f9dda23
tree6e469ba122fea2651bd34d931dca46f755f0b799
parent9f7810d38fbc4b36eb27d6f66d3528d69adc386a
block, bfq: fix sequential rq detection in rate estimation

In bfq_update_peak_rate, to check whether an I/O request rq is
sequential, only the seek distance of rq w.r.t. the last request
dispatched is controlled. This is not sufficient for non-rotational
storage, where the size of rq is at least as relevant. This commit adds
the missing control.

Signed-off-by: Paolo Valente <paolo.valente@linaro.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bfq-iosched.c