btrfs: zoned: skip reporting zone for new block group
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest2 patches 2 repliesIn review
- v22 patches 6 repliesSuperseded
- 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 files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | block: introduce zone capacity helperinclude/ | +45 | 1 reply | |
| 2/2 | btrfs: zoned: skip reporting zone for new block groupfs/ | +16 | 0 replies |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Damien Le Moal | Johannes Thumshirn | Shin'ichiro Kawasaki | Chaitanya Kulkarni |
|---|---|---|---|---|
| 1/2 | R-b | R-b | R-b | |
| 2/2 | R-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.
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