Re: XFS Deadlock on Linux 6.12.82
From: Dave Chinner
Date: Wed Apr 22 2026 - 16:54:14 EST
On Wed, Apr 22, 2026 at 10:25:05PM +0700, Ammar Faizi wrote:
> Hi,
>
> While running Linux 6.12.82 with CONFIG_PROVE_LOCKING enabled, I
> encountered the following lockdep splat. Based on the call trace, the
> potential deadlock appears to be related to the XFS subsystem.
Well known false positive.
Lockdep knows nothing about inode reference counts and how they
interact with memory reclaim. i.e. A referenced locked inode doing
memory allocation cannot be found by memory reclaim processing
unreferenced inodes, so reclaim cannot deadlock on inode locks held
by referenced inodes when doing memory allocation.
-Dave.
--
Dave Chinner
dgc@xxxxxxxxxx