btrfs: Delay block group auto removal to avoid interfering qgroups
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 4 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | btrfs: Use btrfs_mark_bg_unused() to replace open codefs/ fs/ fs/ | +19 | 1 reply | |
| 2/2 | btrfs: Delayed empty block group auto removal to next transactionfs/ fs/ fs/ +2 more | +50 | 2 replies |
Reviews trailers per patch
1 of 2 patches has a Reviewed-by or Acked-by.
| Patch | Nikolay Borisov |
|---|---|
| 1/2 | R-b |
| 2/2 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH REBASED 0/2] btrfs: Delay block group auto removal to avoid interfering qgroups
The patchset can be fetched from github:
https://github.com/adam900710/linux/tree/delayed_bg_removal
It's based on David's misc-next branch, HEAD is:
commit c77a75861d82a497bd1a26054588cd9af59eb5db (david/misc-next)
Author: Ethan Lien <[email protected]> Date: Mon May 28 13:48:20 2018 +0800
btrfs: balance dirty metadata pages in btrfs_finish_ordered_io
This bug is reported from SUSE openQA, although it's pretty hard to hit in real world (even real world VM), it's believed block group auto removal (anyway, there isn't much thing can remove a chunk mapping in btrfs) could interfere with qgroup's search on commit root.
Full details can be found in the 2rd patch.
The patchset uses 1 submitted cleanup/refactor patches as basis, and the 2nd patch will ensure unused block group will only be deleted after current transaction is done.
Qu Wenruo (2):
btrfs: Use btrfs_mark_bg_unused() to replace open code
btrfs: Delayed empty block group auto removal to next transaction
fs/btrfs/ctree.h | 2 ++ fs/btrfs/extent-tree.c | 62 +++++++++++++++++++++++++++++------------- fs/btrfs/scrub.c | 9 +----- fs/btrfs/transaction.c | 7 +++++ fs/btrfs/transaction.h | 10 +++++++ 5 files changed, 63 insertions(+), 27 deletions(-)
Signature · 1 line
2.17.0