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
36 _require_renameat2 whiteout
38 _scratch_mkfs > $seqres.full 2>&1 || _fail "mkfs failed"
39 _scratch_mount >> $seqres.full 2>&1
41 # start a create and rename(rename_whiteout) workload. These processes
42 # occur simultaneously may cause the deadlock between AGI and AGF with
44 $FSSTRESS_PROG -z -n 150 -p 100 \
47 -d $SCRATCH_MNT/fsstress >> $seqres.full 2>&1
49 echo Silence is golden
51 # Failure comes in the form of a deadlock.