2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2015 Fujitsu. All Rights Reserved.
5 # FS QA Test No. btrfs/082
7 # Regression test for a btrfs issue of resizing 'thread_pool' when
10 # This regression was introduced by the following linux kernel commit:
11 # btrfs: Added btrfs_workqueue_struct implemented ordered
12 # execution based on kernel workqueue
13 # 08a9ff3264181986d1d692a4e6fce3669700c9f8
14 # And it was fixed by the following linux kernel commit:
15 # btrfs: fix crash in remount(thread_pool=) case
16 # 800ee2247f483b6d05ed47ef3bbc90b56451746c
19 seqres=$RESULT_DIR/$seq
20 echo "QA output created by $seq"
24 status=1 # failure is the default!
31 trap "_cleanup ; exit \$status" 0 1 2 3 15
33 # get standard environment, filters and checks
37 # real QA test starts here
41 _scratch_mkfs >$seqres.full 2>&1
43 _scratch_mount "-o thread_pool=6"
44 _scratch_mount "-o remount,thread_pool=10"
46 echo "Silence is golden"