linux-xfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] xfs: unmount hang fixes
@ 2025-05-15  2:42 Dave Chinner
  2025-05-15  2:42 ` [PATCH 1/2] xfs: xfs_ifree_cluster vs xfs_iflush_shutdown_abort deadlock Dave Chinner
  2025-05-15  2:42 ` [PATCH 2/2] [RFC] xfs: fix unmount hang with unflushable inodes stuck in the AIL Dave Chinner
  0 siblings, 2 replies; 6+ messages in thread
From: Dave Chinner @ 2025-05-15  2:42 UTC (permalink / raw)
  To: linux-xfs

Hi folks,

These are a couple of shutdown related unmount hang fixes that
check-parallel has been tripping over semi-regularly. The first
fix is relatively straight forward, but the second is marked as RFC
because I've only just got to the bottom of that one and it's quite
a bit more complex to solve.

The second fix will probably have to be split into 3 smaller patches
(tracing needed to find the issue, code rearrangement to make the
fix cleaner, and the fix) but before I do that I wanted to get some
more eyes on it and feedback whilst I do more testing to confirm
that it works as intended and hasn't introduced any regressions.

The fundamental problem that the second patch addresses is that
stale inode buffers need the last reference to the BLI to complete
the stale inodes attached to the buffer when it is released. There's
a corner case where this last reference can be the transaction
commit context, and that doesn't perform the necessary cleanup.

I've kept all the triage notes, analysis and thinking I did to come
up with the fix in the commit message for the second patch -
hopefully that will help people understand what is actually going on
a lot faster than I did....

-Dave.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-05-23  5:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-15  2:42 [PATCH 0/2] xfs: unmount hang fixes Dave Chinner
2025-05-15  2:42 ` [PATCH 1/2] xfs: xfs_ifree_cluster vs xfs_iflush_shutdown_abort deadlock Dave Chinner
2025-05-23  4:35   ` Christoph Hellwig
2025-05-15  2:42 ` [PATCH 2/2] [RFC] xfs: fix unmount hang with unflushable inodes stuck in the AIL Dave Chinner
2025-05-23  5:07   ` Christoph Hellwig
2025-05-23  5:43     ` Dave Chinner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).