xfs: add debug knob to slow down writeback for fun
authorDarrick J. Wong <djwong@kernel.org>
Tue, 29 Nov 2022 01:24:35 +0000 (17:24 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 29 Nov 2022 01:24:35 +0000 (17:24 -0800)
commitc2beff99eb03866df6fdbd3a93b08fd27eb8bf5c
treec3d0a1f8b6b0750cc5549d0e2a7c749d7d4bc821
parent7dd73802f97d2a1602b1cf5c1d6623fb08cb15c5
xfs: add debug knob to slow down writeback for fun

Add a new error injection knob so that we can arbitrarily slow down
writeback 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
745b3f76d1c8 ("xfs: maintain a sequence count for inode fork
manipulations").

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
fs/xfs/libxfs/xfs_errortag.h
fs/xfs/xfs_aops.c
fs/xfs/xfs_error.c
fs/xfs/xfs_error.h
fs/xfs/xfs_trace.c
fs/xfs/xfs_trace.h