]> www.infradead.org Git - users/hch/xfstests-dev.git/commit
btrfs: add test for quota disable in parallel with balance
authorShin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Wed, 19 Jan 2022 02:25:31 +0000 (11:25 +0900)
committerEryu Guan <guaneryu@gmail.com>
Sun, 23 Jan 2022 14:25:12 +0000 (22:25 +0800)
commitcf686862d840bd8e2906db5abc38d78be96d0249
tree346bde28cbedae3ebbabedcf19fbf9f7316c71f0
parentbe9fdf6287a0b9437901ea206ed5c62dad7abcc2
btrfs: add test for quota disable in parallel with balance

Test quota disable during btrfs balance and confirm it does not
cause kernel hang. This is a regression test for the problem
reported to linux-btrfs list [1].

The hang was recreated using the test case and memory backed
null_blk device with 5GB size as the scratch device, and fixed by
kernel patch titled

  btrfs: fix deadlock between quota disable and qgroup rescan worker

[1] https://lore.kernel.org/linux-btrfs/20220115053012.941761-1-shinichiro.kawasaki@wdc.com/

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