Skip to content

btrfs: zoned: skip reporting zone for new block group

Naohiro Aota linux-block linux-btrfs 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 2 repliesIn review
  2. v22 patches 6 repliesSuperseded
  3. v12 patches 8 repliesSuperseded

Changes in v3 from the cover letter

- Rename argument variable and fix the kerneldoc.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2block: introduce zone capacity helperinclude/linux/blkdev.h+45 -221 reply
2/2btrfs: zoned: skip reporting zone for new block groupfs/btrfs/zoned.c+16 -20 replies

Reviews trailers per patch

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

PatchDamien Le MoalJohannes ThumshirnShin'ichiro KawasakiChaitanya Kulkarni
1/2R-b R-b R-b
2/2R-b R-b T-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 4 reviewers.

Read the v3 thread

Cover letter [PATCH v3 0/2] btrfs: zoned: skip reporting zone for new block group

Newly created block group should reside on empty zones, whose write pointer should always be 0. Also, we can load the zone capacity from the block layer. So, we don't need to REPORT_ZONE to load the info.

The reporting zone on a new block group is not only unnecessary, but also can cause a deadlock. When one process do a report zones and another process freezes the block device, the report zones side cannot allocate a tag because the freeze is already started. This can thus result in new block group creation to hang forever, blocking the write path.

v1: https://patch.msgid.link/[email protected]
v2: https://patch.msgid.link/[email protected]
- Move other zone related functions into the same #ifdef block.
v3:
- Rename argument variable and fix the kerneldoc.

Naohiro Aota (2):
block: introduce zone capacity helper
btrfs: zoned: skip reporting zone for new block group

 fs/btrfs/zoned.c       | 18 ++++++++++--
 include/linux/blkdev.h | 67 ++++++++++++++++++++++++++++--------------
 2 files changed, 61 insertions(+), 24 deletions(-)
Signature · 1 line
2.49.0