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

From: Siddh Raman Pant

Date: Thu Oct 01 2026 - 11:08:56 EST


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

Along with appropriate pre-requisite commits.

Previous stable backport was used for doing this backport.

I have added information in commit message upon conflict resolutions.

Dave Chinner (6):
xfs: xfs_ifree_cluster vs xfs_iflush_shutdown_abort deadlock
xfs: catch stale AGF/AGF metadata
xfs: avoid dquot buffer pin deadlock
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.c | 55 -------
fs/xfs/xfs_buf.h | 1 -
fs/xfs/xfs_buf_item.c | 295 ++++++++++++++++++++++---------------
fs/xfs/xfs_buf_item.h | 3 +-
fs/xfs/xfs_dquot.c | 3 +-
fs/xfs/xfs_icache.c | 8 +
fs/xfs/xfs_inode.c | 2 +-
fs/xfs/xfs_qm.c | 76 +++-------
fs/xfs/xfs_trace.h | 1 -
11 files changed, 273 insertions(+), 249 deletions(-)

--
2.53.0