Introduce cached report zones
Status from this message: Applied, thanks!
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest15 patches 2 repliesApplied
- v315 patches 34 repliesSuperseded
- v215 patches 24 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 | 13 patches | 49 replies | Superseded |
Changes in v4 from the cover letter
- Rebased on the latest block for-next tree.
- Fixed handling of the active zone condition in patch 7 and patch 15.
- Added review tags.
Patches in v4 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/15 | block: handle zone management operations completionsblock/ block/ | +104 | 0 replies | |
| 2/15 | block: freeze queue when updating zone resourcesblock/ | +24 | 0 replies | |
| 3/15 | block: cleanup blkdev_report_zones()block/ | +1 | 0 replies | |
| 4/15 | block: introduce disk_report_zone()block/ drivers/ drivers/ +13 more | +120 | 0 replies | |
| 5/15 | block: reorganize struct blk_zone_wplugblock/ | +10 | 0 replies | |
| 6/15 | block: use zone condition to determine conventional zonesblock/ include/ | +117 | 0 replies | |
| 7/15 | block: track zone conditionsblock/ include/ | +125 | 0 replies | |
| 8/15 | block: refactor blkdev_report_zones() codeblock/ | +16 | 0 replies | |
| 9/15 | block: introduce blkdev_get_zone_info()block/ include/ | +144 | 0 replies | |
| 10/15 | block: introduce blkdev_report_zones_cached()block/ include/ | +77 | 0 replies | |
| 11/15 | block: introduce BLKREPORTZONESV2 ioctlblock/ block/ include/ +1 more | +54 | 0 replies | |
| 12/15 | block: improve zone_wplugs debugfs attribute outputblock/ | +4 | 0 replies | |
| 13/15 | block: add zone write plug condition to debugfs zone_wplugsblock/ | +4 | 0 replies | |
| 14/15 | btrfs: use blkdev_report_zones_cached()fs/ | +6 | 0 replies | |
| 15/15 | xfs: use blkdev_report_zones_cached()fs/ fs/ | +2 | 0 replies |
Reviews trailers per patch
13 of 15 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Christoph Hellwig | Johannes Thumshirn | Chaitanya Kulkarni | Hannes Reinecke | Bart Van Assche | David Sterba | Martin K. Petersen |
|---|---|---|---|---|---|---|---|
| Series | R-b | ||||||
| 1/15 | R-b | R-b | R-b | R-b | |||
| 2/15 | R-b | R-b | R-b | R-b | |||
| 3/15 | R-b | R-b | R-b | R-b | R-b | ||
| 4/15 | R-b | R-b | R-b | R-b | |||
| 5/15 | R-b | R-b | R-b | R-b | |||
| 6/15 | R-b | R-b | R-b | ||||
| 7/15 | |||||||
| 8/15 | R-b | R-b | R-b | ||||
| 9/15 | R-b | R-b | R-b | ||||
| 10/15 | R-b | R-b | |||||
| 11/15 | R-b | R-b | |||||
| 12/15 | R-b | R-b | R-b | ||||
| 13/15 | R-b | R-b | |||||
| 14/15 | R-b | A-b | |||||
| 15/15 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 7 reviewers.
Cover letter [PATCH v4 00/15] Introduce cached report zones
This patch series implements a cached report zones using information from the block layer zone write plugs and a new zone condition tracking. This avoids having to execute slow report zones commands on the device when for instance mounting file systems, which can significantly speed things up, especially in setups with multiple SMR HDDs (e.g. a BTRFS RAID volume).
The first patch improves handling of zone management commands. Patch 2 fixes zone resource updates and the following 3 patches cleanup the zone code in preparation for introducing cached zone report support. From patch 6 to 13, cached report zones is implemented and made available to users with a new ioctl() command.
Finally, patches 14 and 15 introduce the use of cached report zones in the mount operation of XFS and BTRFS.
These patches are against Jens' for-next tree.
Changes from v3:
- Rebased on the latest block for-next tree.
- Fixed handling of the active zone condition in patch 7 and patch 15.
- Added review tags.
Changes from v2:
- Rebased on the latest block for-next tree
- Fixed compilation warning (undocumented argument) in patch 4
- Modified patch 13 to display condition name instead of raw value, as suggested by Johannes.
- Added review tags
Changes from v1:
- Move the patch "block: handle zone management operations completions" at the beginning of the series and added a Fixes tag.
- Reworked a little patch 2 as suggested by Bart (error path handling)
- Added patch 8 as requested by Bart.
- Added patch 12 as suggested by Bart.
- Corrected various typos in commit messages and code comments.
- Added review tags
Damien Le Moal (15):
block: handle zone management operations completions
block: freeze queue when updating zone resources
block: cleanup blkdev_report_zones()
block: introduce disk_report_zone()
block: reorganize struct blk_zone_wplug
block: use zone condition to determine conventional zones
block: track zone conditions
block: refactor blkdev_report_zones() code
block: introduce blkdev_get_zone_info()
block: introduce blkdev_report_zones_cached()
block: introduce BLKREPORTZONESV2 ioctl
block: improve zone_wplugs debugfs attribute output
block: add zone write plug condition to debugfs zone_wplugs
btrfs: use blkdev_report_zones_cached()
xfs: use blkdev_report_zones_cached()
block/blk-zoned.c | 798 +++++++++++++++++++++++------- block/blk.h | 14 + block/ioctl.c | 1 + drivers/block/null_blk/null_blk.h | 3 +- drivers/block/null_blk/zoned.c | 4 +- drivers/block/ublk_drv.c | 4 +- drivers/block/virtio_blk.c | 11 +- drivers/block/zloop.c | 4 +- drivers/md/dm-zone.c | 54 +- drivers/md/dm.h | 3 +- drivers/nvme/host/core.c | 5 +- drivers/nvme/host/multipath.c | 4 +- drivers/nvme/host/nvme.h | 2 +- drivers/nvme/host/zns.c | 10 +- drivers/scsi/sd.h | 2 +- drivers/scsi/sd_zbc.c | 20 +- fs/btrfs/zoned.c | 11 +- fs/xfs/libxfs/xfs_zones.c | 1 + fs/xfs/xfs_zone_alloc.c | 2 +- include/linux/blkdev.h | 49 +- include/linux/device-mapper.h | 10 +- include/uapi/linux/blkzoned.h | 46 +- include/uapi/linux/fs.h | 2 +- 23 files changed, 784 insertions(+), 276 deletions(-)
base-commit: 88e5f3c82190f1f4391618a49a61e99606a3fc00
Signature · 1 line
2.51.0