]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
generic: test concurrent direct IO writes and fsync using same fd
authorFilipe Manana <fdmanana@suse.com>
Thu, 29 Aug 2024 23:10:21 +0000 (00:10 +0100)
committerZorro Lang <zlang@kernel.org>
Sun, 8 Sep 2024 05:19:27 +0000 (13:19 +0800)
commit136c5099d07eae5cd02ae9bfc992e44f3b21ffe7
tree83b119b9fc487a4e91b71d5c5a7983f601528818
parent87f14ee1f79f5f222472d86ba0f7e800944ce221
generic: test concurrent direct IO writes and fsync using same fd

Test that a program that has 2 threads using the same file descriptor and
concurrently doing direct IO writes and fsync doesn't trigger any crash
or deadlock.

This is motivated by a bug found in btrfs fixed by the following patch:

  "btrfs: fix race between direct IO write and fsync when using same fd"

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
.gitignore
src/Makefile
src/dio-write-fsync-same-fd.c [new file with mode: 0644]
tests/generic/364 [new file with mode: 0755]
tests/generic/364.out [new file with mode: 0644]