]> git.hungrycats.org Git - linux/commit
zygo: btrfs: more debugging from Qu
authorZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Fri, 6 Dec 2019 16:46:26 +0000 (11:46 -0500)
committerZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Fri, 6 Dec 2019 16:46:26 +0000 (11:46 -0500)
commit77fc783e4d70918b453c7f2ba03f5d18d3a31ba3
treeb578a29396aa323f0e24bf09a6a52fd285c703fd
parente211f1a58b80b8b752f0e6054af945d20f1a2f86
zygo: btrfs: more debugging from Qu

Mind to apply this snippet?

It's not a poking around fixes, but a debug output for:
- Which block group is being balanced, and when it finishes
- Which subvolume (including reloc tree) is being dropped and when it
finishes

It's going to hit all those bugs again, but with the debug patch, I can
see how impossible things happens.

After some discussion in SUSE internal IRC, it proves one nightmare:
- root->reloc_root assignment is not atomic
- fs_info->reloc_cntl assigment is not atomic

So despite that, would you like to test it on a single core VM or
disabling all other cores of a baremetal to see if it can be reproduced?

Thanks,
Qu
fs/btrfs/extent-tree.c
fs/btrfs/relocation.c