Skip to content

btrfs: balance root leak and runaway balance fix

Qu Wenruo linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2btrfs: relocation: Fix reloc root leakage and the NULL pointer reference caused by the leakagefs/btrfs/relocation.c+10 -30 replies
2/2btrfs: relocation: Clear the DEAD_RELOC_TREE bit for orphan roots to prevent runaway balancefs/btrfs/disk-io.c fs/btrfs/relocation.c+3 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] btrfs: balance root leak and runaway balance fix

This patchset will fix the most wanted balance bug, runaway balance. All my fault, and all small fixes.

The first patch fixes the root leakage and NULL pointer dereference caused by it.

The second patch will fix the runaway balance and add alerting system to prevent such problem from happening again.
The runaway fix depends on the root leakage fix, thus they are sent in a patchset.

The first patch is just resent without any modification.

For backport to older kernels, the first patch needs small modification to use atomic_t other than refcount_t.

Qu Wenruo (2):
btrfs: relocation: Fix reloc root leakage and the NULL pointer
reference caused by the leakage
btrfs: relocation: Clear the DEAD_RELOC_TREE bit for orphan roots to
prevent runaway balance

 fs/btrfs/disk-io.c    |  1 +
 fs/btrfs/relocation.c | 15 ++++++++++++---
 2 files changed, 13 insertions(+), 3 deletions(-)
Signature · 1 line
2.26.2