[lvc-project] [PATCH v5 1/2] xfs: skip inode inactivation on a shut down mount
Carlos Maiolino
cem at kernel.org
Fri Jun 12 11:36:56 MSK 2026
On Wed, 10 Jun 2026 22:19:03 +0300, Mikhail Lobanov wrote:
> XFS already declines to inactivate inodes on a shut down mount, but only
> at queue time: xfs_inode_mark_reclaimable() calls
> xfs_inode_needs_inactive(), which returns false when the mount is shut
> down ("If the log isn't running, push inodes straight to reclaim"), and
> then drops the dquots and marks the inode reclaimable directly.
>
> An inode that was queued for background inactivation while the mount was
> still live is not covered by that check: the inodegc worker still calls
> xfs_inactive() on it even after the mount has been shut down in the
> meantime. Inactivation modifies persistent metadata and runs
> transactions that cannot complete on a shut down mount, and it relies on
> subsystems (e.g. quota) that a torn down, or never fully set up, mount
> may not have available.
>
> [...]
Applied to for-next, thanks!
[1/2] xfs: skip inode inactivation on a shut down mount
commit: 07e2939ddab876d68d661ebad6c4eedec98193b8
[2/2] xfs: shut down the filesystem on a failed mount
commit: 804826eac53cff44f88f42989fcc601c2612c0ed
Best regards,
--
Carlos Maiolino <cem at kernel.org>
More information about the lvc-project
mailing list