Re: [PATCH v2] Bluetooth: btmtksdio: fix deadlock in close and reset paths
| Newsgroups | org.infradead.lists.linux-mediatek,org.infradead.lists.linux-arm-kernel,org.kernel.vger.linux-bluetooth,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <178647901335.1134064.2663051483826196708.git-patchwork-notify@kernel.org> |
Hello: This patch was applied to bluetooth/bluetooth-next.git (master) by Luiz Augusto von Dentz <[email protected]>: On Mon, 10 Aug 2026 18:22:38 +0800 you wrote: > btmtksdio_close() and btmtksdio_reset() call cancel_work_sync() on > bdev->txrx_work while holding the sdio host lock, which is also acquired > by btmtksdio_txrx_work(). If txrx_work is queued when close/reset runs, > a worker thread may start it after the host lock is taken and block in > sdio_claim_host(), while cancel_work_sync() waits for the work to > finish. The host lock is only released after cancel_work_sync() > returns, so both sides wait forever, deadlocking close/reset. > > [...] Here is the summary with links: - [v2] Bluetooth: btmtksdio: fix deadlock in close and reset paths https://git.kernel.org/bluetooth/bluetooth-next/c/fca8fe614904 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html