]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
generic: test a race between dio reads and mapped writes
authorXiao Yang <yangx.jy@cn.fujitsu.com>
Thu, 29 Jun 2017 06:36:41 +0000 (14:36 +0800)
committerEryu Guan <eguan@redhat.com>
Thu, 29 Jun 2017 09:54:13 +0000 (17:54 +0800)
commitff5eca9b68e650e8ade96ae49cb9bdfb2c5ce5c1
tree68209c3711228da62c6fcabd7b73754a0df68f9d
parent95cf534f03e27c2e840a690222583ed1d352d8a2
generic: test a race between dio reads and mapped writes

This test reproduces a race between a direct I/O read and
a mapped write to a hole in a file.  On xfs filesystem, it
will trigger a BUG_ON(), and this XFS bug has been fixed by:

04197b3 ("xfs: don't BUG() on mixed direct and mapped I/O")

[ eguan: umount before check dmesg log, and add rw group ]

Signed-off-by: Xiao Yang <yangx.jy@cn.fujitsu.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
tests/generic/446 [new file with mode: 0755]
tests/generic/446.out [new file with mode: 0644]
tests/generic/group