2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2015 Red Hat Inc. All Rights Reserved.
5 # FS QA Test generic/095
7 # Concurrent mixed I/O (buffer I/O, aiodio, mmap, splice) on the same files
10 _begin_fstest auto rw stress
12 # Import common functions.
15 # real QA test starts here
21 iodepth=$((16 * LOAD_FACTOR))
22 iodepth_batch=$((8 * LOAD_FACTOR))
23 numjobs=$((5 * LOAD_FACTOR))
26 cat >$fio_config <<EOF
30 iodepth_batch=$iodepth_batch
33 directory=$SCRATCH_MNT
81 # with ioengine=mmap and direct=1, fio requires bs to be at least pagesize,
82 # which is a fio built-in var.
83 echo 'bs=$pagesize' >> $fio_config
85 _require_fio $fio_config
86 _scratch_mkfs >>$seqres.full 2>&1
89 # There's a known EIO failure to report collisions between directio and buffered
90 # writes to userspace, refer to upstream linux 5a9d929d6e13. So ignore EIO error
92 $FIO_PROG $fio_config --ignore_error=,EIO --output=$fio_out
93 cat $fio_out >> $seqres.full
94 echo "Silence is golden"
96 # xfs generates WARNINGs on purpose when applications mix buffered/mmap IO with
97 # direct IO on the same file. On the other hand, this fio job has been proven
98 # to be potent, we don't want to simply _disable_dmesg_check which could miss
99 # other potential bugs. So filter out the intentional WARNINGs, make sure test
100 # doesn't fail because of this warning and fails on other WARNINGs.
102 # umount before checking dmesg in case umount triggers any WARNING or Oops
105 _check_dmesg _filter_aiodio_dmesg