Repository navigation
Commit d87447d
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>1 parent 530c4cb commit d87447d
1 file changed
Lines changed: 7 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
238 | 243 | | |
239 | 244 | | |
240 | 245 | | |
| |||
2754 | 2759 | | |
2755 | 2760 | | |
2756 | 2761 | | |
2757 | | - | |
| 2762 | + | |
2758 | 2763 | | |
2759 | 2764 | | |
2760 | 2765 | | |
| |||
4511 | 4516 | | |
4512 | 4517 | | |
4513 | 4518 | | |
4514 | | - | |
4515 | | - | |
4516 | | - | |
4517 | | - | |
| 4519 | + | |
4518 | 4520 | | |
4519 | 4521 | | |
4520 | 4522 | | |
| |||
0 commit comments