Re: [PATCH] xfs: don't hold buffer locks across sync transaction commit in xfs_sync_sb_buf

From: Carlos Maiolino

Date: Tue Jul 21 2026 - 07:13:19 EST


On Mon, 13 Jul 2026 22:50:02 +0800, Yun Zhou wrote:
> xfs_sync_sb_buf() holds sb/rtsb buffer locks across a synchronous
> xfs_trans_commit(), which flushes the CIL push workqueue internally.
> If shutdown occurs during the CIL push, xfs_buf_item_unpin() needs to
> lock these buffers to fail them, causing a deadlock:
>
> setlabel: holds buf lock -> flush_workqueue(xfs-cil)
> CIL push worker: xfs_buf_item_unpin -> xfs_buf_lock(same buf)
>
> [...]

Applied to for-next, thanks!

[1/1] xfs: don't hold buffer locks across sync transaction commit in xfs_sync_sb_buf
commit: b9ad0b9891dd0ddbfd8d9bfc7a55b0b70e9871f2

Best regards,
--
Carlos Maiolino <cem@xxxxxxxxxx>