Re: [PATCH] xfs: release dquot buffer after dqflush failure
From: Carlos Maiolino
Date: Wed Jul 01 2026 - 09:23:47 EST
On Thu, 25 Jun 2026 21:16:23 +0800, Yingjie Gao wrote:
> xfs_qm_dqpurge() gets a locked buffer from xfs_dquot_use_attached_buf().
> If xfs_qm_dqflush() fails, the error path skips xfs_buf_relse() and then
> calls xfs_dquot_detach_buf(), which tries to lock the same buffer again.
>
> Release the buffer after xfs_qm_dqflush() returns so the error path drops
> the caller hold and unlocks the buffer before the dquot is detached,
> matching the other dqflush callers.
>
> [...]
Applied to for-next, thanks!
[1/1] xfs: release dquot buffer after dqflush failure
commit: 0c1b3a823a22af623d55f225fe2ac7e8b9052821
Best regards,
--
Carlos Maiolino <cem@xxxxxxxxxx>