mbox series

[PATCHSET,v28.0,0/1] xfs: prevent livelocks in xchk_iget

Message ID 170086925757.2768713.18061984370448871279.stgit@frogsfrogsfrogs (mailing list archive)
Headers show
Series xfs: prevent livelocks in xchk_iget | expand

Message

Darrick J. Wong Nov. 24, 2023, 11:44 p.m. UTC
Hi all,

Prevent scrub from live locking in xchk_iget if there's a cycle in the
inobt by allocating an empty transaction.

If you're going to start using this code, I strongly recommend pulling
from my git trees, which are linked below.

This has been running on the djcloud for months with no problems.  Enjoy!
Comments and questions are, as always, welcome.

--D

kernel git tree:
https://git.kernel.org/cgit/linux/kernel/git/djwong/xfs-linux.git/log/?h=scrub-livelock-prevention
---
 fs/xfs/scrub/common.c |    6 ++++--
 fs/xfs/scrub/common.h |   19 +++++++++++++++++++
 fs/xfs/scrub/inode.c  |    4 ++--
 3 files changed, 25 insertions(+), 4 deletions(-)