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

From: Siddh Raman Pant

Date: Tue Oct 13 2026 - 04:17:05 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: 15
IDs: 075, 083, 091, 112, 127, 231, 263,
269, 270, 363, 365, 645, 753, 759,
760

Failures after changes:
Count: 13
IDs: 075, 083, 091, 127, 263, 269, 270,
363, 365, 645, 753, 759, 760

New successes after changes:
Count: 2
IDs: 112, 231

No new failure after changes.

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

Failures before changes:
Count: 7
IDs: 104, 168, 300, 442, 597, 598, 609

Failures after changes:
Count: 7
IDs: 104, 168, 300, 442, 597, 598, 609

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