[PATCH RESEND 6.6 v2 0/5] Backport of XFS umount hang fixes

From: Siddh Raman Pant

Date: Tue Oct 13 2026 - 05:40:43 EST


Backport of this series:
https://lore.kernel.org/all/20250625224957.1436116-1-david@xxxxxxxxxxxxx/

I have added information in commit message upon conflict resolutions.

v2: Address Sasha's comments to v1 in the below mail:
https://lore.kernel.org/stable/2026-10-01-1-daily-reply-0012-re-xfs-umount-hang-backports@xxxxxxxxxx/

xfstests_xfs testing results:
Generic:
Ran: 001 to 771 (672 tests; gaps)

Failures before changes:
Count: 7
IDs: 363, 365, 633, 645, 696, 697, 753

Failures after changes:
Count: 7
IDs: 363, 365, 633, 645, 696, 697, 753

No new success or failure after changes.

XFS:
Ran: 001 to 789 (311 tests; gaps)

Failures before changes:
Count: 1
IDs: 300

Failures after changes:
Count: 1
IDs: 300

No new success or failure after changes.

Thanks,
Siddh

Dave Chinner (5):
xfs: xfs_ifree_cluster vs xfs_iflush_shutdown_abort deadlock
xfs: catch stale AGF/AGF metadata
xfs: rearrange code in xfs_buf_item.c
xfs: factor out stale buffer item completion
xfs: fix unmount hang with unflushable inodes stuck in the AIL

fs/xfs/libxfs/xfs_alloc.c | 46 ++++--
fs/xfs/libxfs/xfs_ialloc.c | 32 +++-
fs/xfs/xfs_buf_item.c | 299 ++++++++++++++++++++++---------------
fs/xfs/xfs_buf_item.h | 3 +-
fs/xfs/xfs_icache.c | 8 +
fs/xfs/xfs_inode.c | 2 +-
6 files changed, 256 insertions(+), 134 deletions(-)

--
2.53.0