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

Darrick J. Wong
2023-11-24T23:44:49Z

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(-)