Skip to content

mq-deadline: Improve support for zoned block devices

Bart Van Assche linux-block 5 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. v6 Latest11 patches 8 repliesApplied
  2. v511 patches 38 repliesSuperseded
  3. v411 patches 11 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v39 patches16 repliesSuperseded
v211 patches36 repliesSuperseded

Changes in v6 from the cover letter

- Added a patch with a grammar fix for a source code comment.
- Renamed op_is_zoned_write() into op_needs_zoned_write_locking().
- Dropped patch "block: mq-deadline: Improve deadline_skip_seq_writes()".

Patches in v6 Applied

#Subject and filesSizeRepliesApplied
1/11block: mq-deadline: Add a word in a source code commentblock/mq-deadline.c+1 -13 replies
2/11block: Simplify blk_req_needs_zone_write_lock()block/blk-zoned.c+0 -30 replies
3/11block: Fix the type of the second bdev_op_is_zoned_write() argumentinclude/linux/blkdev.h+1 -10 replies
4/11block: Introduce op_needs_zoned_write_locking()include/linux/blkdev.h+7 -41 reply
5/11block: Introduce blk_rq_is_seq_zoned_write()block/blk-zoned.c include/linux/blk-mq.h+18 -41 reply
6/11block: mq-deadline: Clean up deadline_check_fifo()block/mq-deadline.c+5 -111 reply
7/11block: mq-deadline: Simplify deadline_skip_seq_writes()block/mq-deadline.c+3 -60 replies
8/11block: mq-deadline: Reduce lock contentionblock/mq-deadline.c+6 -60 replies
9/11block: mq-deadline: Track the dispatch positionblock/mq-deadline.c+31 -140 replies
10/11block: mq-deadline: Handle requeued requests correctlyblock/mq-deadline.c+32 -21 reply
11/11block: mq-deadline: Fix handling of at-head zoned writesblock/mq-deadline.c+7 -20 replies

Reviews trailers per patch

10 of 11 patches have a Reviewed-by or Acked-by.

PatchChristoph HellwigDamien Le MoalHannes ReineckeJohannes ThumshirnPankaj Raghav
1/11T-b
2/11R-b R-b R-b R-b
3/11R-b R-b R-b R-b R-b
4/11R-b R-b
5/11R-b
6/11R-b R-b R-b
7/11R-b R-b R-b
8/11R-b R-b R-b
9/11R-b R-b
10/11R-b R-b R-b
11/11R-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 5 reviewers.

Read the v6 thread

Cover letter [PATCH v6 00/11] mq-deadline: Improve support for zoned block devices

Hi Jens,

This patch series improves support for zoned block devices in the mq-deadline scheduler by preserving the order of requeued writes (REQ_OP_WRITE and REQ_OP_WRITE_ZEROES).

Please consider this patch series for the next merge window.

Thanks,

Bart.

Changes compared to v5:
- Added a patch with a grammar fix for a source code comment.
- Renamed op_is_zoned_write() into op_needs_zoned_write_locking().
- Dropped patch "block: mq-deadline: Improve deadline_skip_seq_writes()".

Changes compared to v4:
- Changed blk_rq_is_seq_zoned_write() into an inline function.
- Reworked patch "Reduce lock contention" such that all merged requests are freed at once.

Changes compared to v3:
- Addressed Christoph's review feedback.
- Dropped patch "block: Micro-optimize blk_req_needs_zone_write_lock()".
- Added three new patches:
* block: Fix the type of the second bdev_op_is_zoned_write() argument
* block: Introduce op_is_zoned_write()
* block: mq-deadline: Reduce lock contention

Changes compared to v2:
- In the patch that micro-optimizes blk_req_needs_zone_write_lock(), inline bdev_op_is_zoned_write() instead of modifying it.
- In patch "block: Introduce blk_rq_is_seq_zoned_write()", converted "case REQ_OP_ZONE_APPEND" into a source code comment.
- Reworked deadline_skip_seq_writes() as suggested by Christoph.
- Dropped the patch that disabled head insertion for zoned writes.
- Dropped patch "mq-deadline: Fix a race condition related to zoned writes".
- Reworked handling of requeued requests: the 'next_rq' pointer has been removed and instead the position of the most recently dispatched request is tracked.
- Dropped the patches for tracking zone capacity and for restricting the number of active zones.

Changes compared to v1:
- Left out the patches related to request insertion and requeuing since Christoph is busy with reworking these patches.
- Added a patch for enforcing the active zone limit.

Bart Van Assche (11):
block: mq-deadline: Add a word in a source code comment
block: Simplify blk_req_needs_zone_write_lock()
block: Fix the type of the second bdev_op_is_zoned_write() argument
block: Introduce op_needs_zoned_write_locking()
block: Introduce blk_rq_is_seq_zoned_write()
block: mq-deadline: Clean up deadline_check_fifo()
block: mq-deadline: Simplify deadline_skip_seq_writes()
block: mq-deadline: Reduce lock contention
block: mq-deadline: Track the dispatch position
block: mq-deadline: Handle requeued requests correctly
block: mq-deadline: Fix handling of at-head zoned writes

 block/blk-zoned.c      |   8 +--
 block/mq-deadline.c    | 125 +++++++++++++++++++++++++++--------------
 include/linux/blk-mq.h |  17 ++++++
 include/linux/blkdev.h |  13 +++--
 4 files changed, 110 insertions(+), 53 deletions(-)