Skip to content

Restore I/O priority support in the mq-deadline scheduler

Bart Van Assche linux-block 2 versions – Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 16 repliesApplied
  2. v14 patches 12 repliesSuperseded

Changes in v2 from the cover letter

- Renamed 'aging_expire' into 'prio_aging_expire'.
- Renamed dd_dispatch_aged_requests() into dd_dispatch_prio_aged_requests().
- Adjusted a source code comment.

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/4block/mq-deadline: Improve request accounting furtherblock/mq-deadline.c+10 -71 reply
2/4block/mq-deadline: Add an invariant checkblock/mq-deadline.c+12 -61 reply
3/4block/mq-deadline: Stop using per-CPU countersblock/mq-deadline.c+56 -682 replies
4/4block/mq-deadline: Prioritize high-priority requestsblock/mq-deadline.c+73 -411 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchDamien Le MoalNiklas CasselHannes Reinecke
1/4R-b R-b R-b
2/4R-b R-b R-b
3/4R-b R-b
4/4R-b R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [PATCH v2 0/4] Restore I/O priority support in the mq-deadline scheduler

Hi Jens,

This patch series includes the following changes compared to the v5.14-r7 implementation:
- Fix request accounting by counting requeued requests once.
- Test correctness of the request accounting code by triggering a kernel warning from inside dd_exit_sched() if an inconsistency has been detected.
- Switch from per-CPU counters to individual counters.
- Restore I/O priority support in the mq-deadline scheduler. The performance measurements in the description of patch 4/4 show that the peformance regressions in the previous version of this patch have been fixed. This has been achieved by using 'jiffies' instead of ktime_get() and also by skipping the aging mechanism if all queued requests have the same I/O priority.

Please consider this patch series for kernel v5.16.

Thanks,

Bart.

Changes compared to v1:
- Renamed 'aging_expire' into 'prio_aging_expire'.
- Renamed dd_dispatch_aged_requests() into dd_dispatch_prio_aged_requests().
- Adjusted a source code comment.

Bart Van Assche (4):
block/mq-deadline: Improve request accounting further block/mq-deadline: Add an invariant check block/mq-deadline: Stop using per-CPU counters block/mq-deadline: Prioritize high-priority requests

 block/mq-deadline.c | 220 ++++++++++++++++++++++++++++----------------
 1 file changed, 143 insertions(+), 77 deletions(-)