Re: [PATCH 1/2] xfs: fix ilock leak on error in xfs_dq_get_next_id
Carlos Maiolino <[email protected]> Mon, 03 Aug 2026 15:22:55 +0200
| Newsgroups | org.kernel.vger.linux-xfs |
|---|---|
| Message-ID | <[email protected]> |
On Mon, 27 Jul 2026 10:38:48 +0800, Long Li wrote:
> xfs_dq_get_next_id() takes the quota inode ILOCK before calling
> xfs_iread_extents(). If xfs_iread_extents() fails, the function returns
> immediately without releasing the lock, leaking the quota inode ILOCK.
> This can leave the quota inode locked and cause subsequent quota
> operations to hang.
>
> Fix this by jumping to a common unlock path on error instead of returning
> directly.
>
> [...]
Applied to for-next, thanks!
[1/2] xfs: fix ilock leak on error in xfs_dq_get_next_id
commit: 63320a0f70f66f311f4bccff3af0719c2119f46c
[2/2] xfs: don't swallow dquot recovery verification errors
commit: e2b4a856085e9bd939bde2dee0d08b1d41babde9
Best regards,
--
Carlos Maiolino <[email protected]>