Skip to content

btrfs: zoned: limit active zones to max_open_zones

Naohiro Aota linux-btrfs 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 1 replyIn review
  2. v23 patches 5 repliesSuperseded
  3. v13 patches 7 repliesSuperseded

Changes from the cover letter

- v3:
- Added patch 2 to address WARN added by patch 4
- v2: https://lore.kernel.org/linux-btrfs/[email protected]/T/
- Refine commit message and add code comment to descrive the WARN condition.
- Introduce and use BTRFS_DEFAULT_MAX_ACTIVE_ZONES (= 128).
- v1: https://lore.kernel.org/linux-btrfs/[email protected]/T/

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4btrfs: zoned: do not select metadata BG as finish targetfs/btrfs/zoned.c+1 -10 replies
2/4btrfs: zoned: fix data relocation block group reservationfs/btrfs/zoned.c+47 -81 reply
3/4btrfs: zoned: fix write time activation failure for metadata block groupfs/btrfs/zoned.c+9 -40 replies
4/4btrfs: zoned: limit active zones to max_open_zonesfs/btrfs/zoned.c+7 -10 replies

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by.

PatchDamien Le MoalJohannes Thumshirn
1/4R-b R-b
2/4R-b
3/4
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/4] btrfs: zoned: limit active zones to max_open_zones

When there is no active zone limit, we can technically write into any number of zones at the same time. However, exceeding the max open zones can degrade performance. To prevent this, this series set the max_active_zones to bdev_max_open_zones() if there is no active zone limit.

Using max_open_zones as an active zone limit enables the active zone tracking and enforcement on SMR too. The revealed some bugs on the active zone tracking. This series also includes the fixes for them.

Changes:
- v3:
- Added patch 2 to address WARN added by patch 4
- v2: https://lore.kernel.org/linux-btrfs/[email protected]/T/
- Refine commit message and add code comment to descrive the WARN condition.
- Introduce and use BTRFS_DEFAULT_MAX_ACTIVE_ZONES (= 128).
- v1: https://lore.kernel.org/linux-btrfs/[email protected]/T/

Naohiro Aota (4):
btrfs: zoned: do not select metadata BG as finish target
btrfs: zoned: fix data relocation block group reservation
btrfs: zoned: fix write time activation failure for metadata block
group
btrfs: zoned: limit active zones to max_open_zones

 fs/btrfs/zoned.c | 78 +++++++++++++++++++++++++++++++++++++++---------
 1 file changed, 64 insertions(+), 14 deletions(-)
Signature · 1 line
2.50.1