]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
generic: Test races between mmap and normal write for prefaulted ranges
authorJan Kara <jack@suse.cz>
Mon, 9 May 2016 00:54:25 +0000 (10:54 +1000)
committerDave Chinner <david@fromorbit.com>
Mon, 9 May 2016 00:54:25 +0000 (10:54 +1000)
commit9e8b4e27552a442f2dfa413b2b6beb56fa8ba5ce
treeab82ae652e9cf1d728d83fbc12a8951270f54512
parent96a3ad1630f678b071794ff0ccdc93237930fe42
generic: Test races between mmap and normal write for prefaulted ranges

Add test which spawns two threads both writing one file via mmap which
has been previously prefaulted by reading. Do the same test when one
thread accesses the file via mmap and the other one via normal write.
This is mainly interesting to uncover races in DAX fault handling and
between DAX fault handling and write path.

Signed-off-by: Jan Kara <jack@suse.cz>
Acked-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
src/holetest.c
tests/generic/344 [new file with mode: 0644]
tests/generic/344.out [new file with mode: 0644]
tests/generic/group