Re: [PATCH] xfs: don't hold buffer locks across sync transaction commit in xfs_sync_sb_buf
Carlos Maiolino <[email protected]>
| Newsgroups | org.kernel.vger.linux-xfs,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <178463068521.324722.15830636968748784433.b4-ty@b4> |
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 <[email protected]>