Repository navigation
Commit 2ec5a5c
block, bfq: always inject I/O of queues blocked by wakers
Suppose that I/O dispatch is plugged, to wait for new I/O for the
in-service bfq-queue, say bfqq. Suppose then that there is a further
bfq_queue woken by bfqq, and that this woken queue has pending I/O. A
woken queue does not steal bandwidth from bfqq, because it remains
soon without I/O if bfqq is not served. So there is virtually no risk
of loss of bandwidth for bfqq if this woken queue has I/O dispatched
while bfqq is waiting for new I/O. In contrast, this extra I/O
injection boosts throughput. This commit performs this extra
injection.
Tested-by: Jan Kara <jack@suse.cz>
Signed-off-by: Paolo Valente <paolo.valente@linaro.org>
Tested-by: Oleksandr Natalenko <oleksandr@natalenko.name>
Link: https://lore.kernel.org/r/20210304174627.161-2-paolo.valente@linaro.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent 9cf1adc commit 2ec5a5c
2 files changed
Lines changed: 35 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4491 | 4491 | | |
4492 | 4492 | | |
4493 | 4493 | | |
| 4494 | + | |
| 4495 | + | |
| 4496 | + | |
| 4497 | + | |
| 4498 | + | |
| 4499 | + | |
4494 | 4500 | | |
4495 | 4501 | | |
4496 | | - | |
| 4502 | + | |
4497 | 4503 | | |
4498 | 4504 | | |
4499 | 4505 | | |
| |||
4526 | 4532 | | |
4527 | 4533 | | |
4528 | 4534 | | |
4529 | | - | |
| 4535 | + | |
| 4536 | + | |
| 4537 | + | |
| 4538 | + | |
| 4539 | + | |
| 4540 | + | |
| 4541 | + | |
| 4542 | + | |
| 4543 | + | |
4530 | 4544 | | |
4531 | 4545 | | |
4532 | 4546 | | |
| |||
4546 | 4560 | | |
4547 | 4561 | | |
4548 | 4562 | | |
4549 | | - | |
| 4563 | + | |
4550 | 4564 | | |
4551 | 4565 | | |
4552 | 4566 | | |
4553 | | - | |
| 4567 | + | |
4554 | 4568 | | |
4555 | 4569 | | |
4556 | 4570 | | |
| |||
4559 | 4573 | | |
4560 | 4574 | | |
4561 | 4575 | | |
4562 | | - | |
| 4576 | + | |
4563 | 4577 | | |
4564 | 4578 | | |
4565 | 4579 | | |
| |||
4577 | 4591 | | |
4578 | 4592 | | |
4579 | 4593 | | |
| 4594 | + | |
| 4595 | + | |
| 4596 | + | |
| 4597 | + | |
| 4598 | + | |
| 4599 | + | |
| 4600 | + | |
| 4601 | + | |
4580 | 4602 | | |
4581 | 4603 | | |
4582 | 4604 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1706 | 1706 | | |
1707 | 1707 | | |
1708 | 1708 | | |
| 1709 | + | |
| 1710 | + | |
| 1711 | + | |
| 1712 | + | |
| 1713 | + | |
| 1714 | + | |
| 1715 | + | |
| 1716 | + | |
1709 | 1717 | | |
0 commit comments