Skip to content

btrfs: fix a couple of hangs during unmount caused by races

[email protected] linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3btrfs: fix hang during unmount when stopping block group reclaim workerfs/btrfs/disk-io.c+11 -60 replies
2/3btrfs: fix hang during unmount when stopping a space reclaim workerfs/btrfs/disk-io.c+25 -00 replies
3/3btrfs: remove useless used space increment during space reservationfs/btrfs/space-info.c+0 -10 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJosef Bacik
SeriesR-b
1/3
2/3
3/3

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

Read the v1 thread

Cover letter [PATCH 0/3] btrfs: fix a couple of hangs during unmount caused by races

From: Filipe Manana <[email protected]>

Due to some races or bad timmings, we can hang during unmount when trying to stop the block group reclaim task or one of the space reclaim tasks. The second case if often triggered by generic/562 for a while, but the underlying problem has been there for a long time, despite seeming to be more frequent recently. More details in the changelogs.

Filipe Manana (3):
btrfs: fix hang during unmount when stopping block group reclaim worker
btrfs: fix hang during unmount when stopping a space reclaim worker
btrfs: remove useless used space increment during space reservation

 fs/btrfs/disk-io.c    | 42 ++++++++++++++++++++++++++++++++++++------
 fs/btrfs/space-info.c |  1 -
 2 files changed, 36 insertions(+), 7 deletions(-)
Signature · 1 line
2.35.1