]> www.infradead.org Git - users/hch/xfstests-dev.git/commit
btrfs: add test for enable/disable quota and create/destroy qgroup repeatedly
authorSidong Yang <realwakka@gmail.com>
Wed, 2 Mar 2022 14:05:48 +0000 (14:05 +0000)
committerEryu Guan <guaneryu@gmail.com>
Sun, 20 Mar 2022 16:25:00 +0000 (00:25 +0800)
commit0d2a65f3239b8de1811522385741523e6e6c3edc
treebb76d170465809fcf4d994d24418f33c931c5b29
parente076938451cee0385fa8649c0e4630d4be261d71
btrfs: add test for enable/disable quota and create/destroy qgroup repeatedly

Test enable/disable quota and create/destroy qgroup repeatedly in
parallel and confirm it does not cause kernel hang. It only happens
in kernel staring with kernel 5.17-rc3. This is a regression test
for the problem reported to linux-btrfs list [1].

The hang was recreated using the test case and fixed by kernel patch
titled

  btrfs: qgroup: fix deadlock between rescan worker and remove qgroup

[1] https://lore.kernel.org/linux-btrfs/20220228014340.21309-1-realwakka@gmail.com/

Signed-off-by: Sidong Yang <realwakka@gmail.com>
Reviewed-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/btrfs/262 [new file with mode: 0755]
tests/btrfs/262.out [new file with mode: 0644]