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

Source kernel commit: c2beff99eb03866df6fdbd3a93b08fd27eb8bf5c

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>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
io/inject.c
libxfs/xfs_errortag.h