]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commit
generic: test race between block map change and writeback
authorEryu Guan <eguan@redhat.com>
Tue, 10 Oct 2017 07:42:07 +0000 (15:42 +0800)
committerEryu Guan <eguan@redhat.com>
Wed, 11 Oct 2017 03:50:54 +0000 (11:50 +0800)
commita6479f7646700f9e8ebb40460c39299db1ebd9f7
tree767c5010a2e727ea214a3ab859a61c64b19375f8
parentd565ff1d5a729b0b9f120f5d5864fc57a6ef54b5
generic: test race between block map change and writeback

Run delalloc writes & append writes & non-data-integrity syncs
concurrently to test the race between block map change vs writeback.

This is to cover an XFS bug that data could be written to wrong
block and delay allocated blocks are leaked because the block map
was changed due to the removal of speculative allocated eofblocks
when writeback is in progress.

And this test partially mimics what lustre-racer[1] test does, using
which this bug was first found.

[1] https://git.hpdd.intel.com/?p=fs/lustre-release.git;a=tree;f=lustre/tests/racer;hb=HEAD

Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
tests/generic/464 [new file with mode: 0755]
tests/generic/464.out [new file with mode: 0644]
tests/generic/group