2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2019 Tencent. All Rights Reserved.
8 # bc56ad8c74b8: ("xfs: Fix deadlock between AGI and AGF with RENAME_WHITEOUT")
11 seqres=$RESULT_DIR/$seq
12 echo "QA output created by $seq"
16 status=1 # failure is the default!
17 trap "_cleanup; exit \$status" 0 1 2 3 15
25 # get standard environment, filters and checks
30 # remove previous $seqres.full before test
33 # real QA test starts here
37 _require_renameat2 whiteout
39 _scratch_mkfs > $seqres.full 2>&1 || _fail "mkfs failed"
40 _scratch_mount >> $seqres.full 2>&1
42 # start a create and rename(rename_whiteout) workload. These processes
43 # occur simultaneously may cause the deadlock between AGI and AGF with
45 $FSSTRESS_PROG -z -n 150 -p 100 \
48 -d $SCRATCH_MNT/fsstress >> $seqres.full 2>&1
50 echo Silence is golden
52 # Failure comes in the form of a deadlock.