mbox series

[GIT,PULL,1/2] xfs: add knobs for testing iomap write race fixes

Message ID 166982875086.4097590.2999263519057909822.stg-ugh@magnolia (mailing list archive)
State New, archived
Headers show
Series [GIT,PULL,1/2] xfs: add knobs for testing iomap write race fixes | expand

Pull-request

git://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git tags/iomap-write-race-testing-6.2_2022-11-30

Message

Darrick J. Wong Nov. 30, 2022, 5:22 p.m. UTC
Hi Darrick,

Please pull this branch with changes for xfs for 6.2-rc1.

As usual, I did a test-merge with the main upstream branch as of a few
minutes ago, and didn't see any conflicts.  Please let me know if you
encounter any problems.

--D

The following changes since commit 7dd73802f97d2a1602b1cf5c1d6623fb08cb15c5:

Merge tag 'xfs-iomap-stale-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/dgc/linux-xfs into xfs-6.2-mergeB (2022-11-28 17:23:58 -0800)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git tags/iomap-write-race-testing-6.2_2022-11-30

for you to fetch changes up to 254e3459285cbf2174350bbc0051e475e1bc5196:

xfs: add debug knob to slow down write for fun (2022-11-28 17:54:49 -0800)

----------------------------------------------------------------
xfs: add knobs for testing iomap write race fixes

This series is a followup to Dave Chinner's series entitled
"xfs, iomap: fix data corruption due to stale cached iomaps".
The two patches here add debugging knobs to introduce artificial delays
into the pagecache write and writeback code to facilitate testing of the
iomap invalidation code.  New tracepoints are also introduced so that
fstests can look for the invalidations.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>

----------------------------------------------------------------
Darrick J. Wong (2):
xfs: add debug knob to slow down writeback for fun
xfs: add debug knob to slow down write for fun

fs/xfs/libxfs/xfs_errortag.h |  6 +++-
fs/xfs/xfs_aops.c            | 14 ++++++--
fs/xfs/xfs_error.c           | 19 ++++++++++
fs/xfs/xfs_error.h           | 13 +++++++
fs/xfs/xfs_iomap.c           | 14 ++++++--
fs/xfs/xfs_trace.c           |  2 ++
fs/xfs/xfs_trace.h           | 86 ++++++++++++++++++++++++++++++++++++++++++++
7 files changed, 149 insertions(+), 5 deletions(-)