]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: add debug knob to slow down write for fun
authorDarrick J. Wong <djwong@kernel.org>
Wed, 15 Mar 2023 14:55:23 +0000 (15:55 +0100)
committerCarlos Maiolino <cem@kernel.org>
Fri, 17 Mar 2023 10:38:46 +0000 (11:38 +0100)
commitfb084f350b18ce329d6e170e1b94a66f8ec44882
tree5bf2df2db948c317e25473c4b06ef046abca5257
parent9061d756bce1322282fd3a99b065392daed136b5
xfs: add debug knob to slow down write for fun

Source kernel commit: 254e3459285cbf2174350bbc0051e475e1bc5196

Add a new error injection knob so that we can arbitrarily slow down
pagecache writes to test for race conditions and aberrant reclaim
behavior if the writeback mechanisms are slow to issue writeback.  This
will enable functional testing for the ifork sequence counters
introduced in commit 304a68b9c63b ("xfs: use iomap_valid method to
detect stale cached iomaps") that fixes write racing with reclaim
writeback.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
io/inject.c
libxfs/xfs_errortag.h