]> www.infradead.org Git - users/hch/xfstests-dev.git/commit
generic: test reads racing with slow reflink operations
authorDarrick J. Wong <djwong@kernel.org>
Mon, 13 Nov 2023 17:08:39 +0000 (09:08 -0800)
committerZorro Lang <zlang@kernel.org>
Thu, 16 Nov 2023 07:37:54 +0000 (15:37 +0800)
commit848c6a882a6faab9d2545a26ad5070a62f7a7bd1
tree83a3b52336e8ef97ec16ad32563a1951d6fadc3e
parent59372e8d3f961eb20d911e715777af06de921891
generic: test reads racing with slow reflink operations

XFS has a rather slow reflink operation.  While a reflink operation is
running, other programs cannot read the contents of the source file,
which is causing latency spikes.  Catherine Hoang wrote a patch to
permit reads, since the source file contents do not change.  This is a
functionality test for that patch.

[zlang@ adds `_supported_fs generic`]

Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Catherine Hoang <catherine.hoang@oracle.com>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
configure.ac
include/builddefs.in
m4/package_libcdev.m4
src/Makefile
src/t_reflink_read_race.c [new file with mode: 0644]
tests/generic/733 [new file with mode: 0755]
tests/generic/733.out [new file with mode: 0644]