Merge tag 'scrub-livelock-prevention-6.8_2023-12-06' of https://git.kernel.org/pub...
authorChandan Babu R <chandanbabu@kernel.org>
Thu, 7 Dec 2023 08:45:26 +0000 (14:15 +0530)
committerChandan Babu R <chandanbabu@kernel.org>
Thu, 7 Dec 2023 08:45:26 +0000 (14:15 +0530)
commitdec0224bae8b9285749ac450dcb538a6f1d97838
treeeb90502a370c94b61dad3bae880afacfb106a796
parent9f334526ee0a3e43328663306315929ebff5390e
parent3f113c2739b1b068854c7ffed635c2bd790d1492
Merge tag 'scrub-livelock-prevention-6.8_2023-12-06' of https://git./linux/kernel/git/djwong/xfs-linux into xfs-6.8-mergeA

xfs: prevent livelocks in xchk_iget

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

This has been lightly tested with fstests.  Enjoy!

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
* tag 'scrub-livelock-prevention-6.8_2023-12-06' of https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux:
  xfs: make xchk_iget safer in the presence of corrupt inode btrees