2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2014 Red Hat, Inc. All Rights Reserved.
7 # Run aio-last-ref-held-by-io - last put of ioctx not in process
8 # context. We've had a couple of instances in the past where having the
9 # last reference to an ioctx be held by the IO (instead of the
10 # process) would cause problems (hung system, crashes).
13 seqres=$RESULT_DIR/$seq
14 echo "QA output created by $seq"
18 status=1 # failure is the default!
19 trap "_cleanup; exit \$status" 0 1 2 3 15
27 # get standard environment, filters and checks
31 # real QA test starts here
36 _require_aiodio aio-last-ref-held-by-io
38 testfile=$TEST_DIR/aio-testfile
39 $XFS_IO_PROG -ftc "pwrite 0 10m" $testfile | _filter_xfs_io
41 $AIO_TEST 0 100 $testfile
46 $AIO_TEST 1 100 $testfile