]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
nvmet-fc: avoid deadlock on delete association path
authorDaniel Wagner <dwagner@suse.de>
Wed, 31 Jan 2024 08:51:10 +0000 (09:51 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Mar 2024 12:34:52 +0000 (13:34 +0100)
commiteaf0971fdabf2a93c1429dc6bedf3bbe85dffa30
tree100f6dd237798cc1bfb882631fde9560f6449786
parent399b70e8eadc35fda6c37f560b129cff0bce359d
nvmet-fc: avoid deadlock on delete association path

[ Upstream commit 710c69dbaccdac312e32931abcb8499c1525d397 ]

When deleting an association the shutdown path is deadlocking because we
try to flush the nvmet_wq nested. Avoid this by deadlock by deferring
the put work into its own work item.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/nvme/target/fc.c