]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
RDMA/ib_srp: Fix a deadlock
authorBart Van Assche <bvanassche@acm.org>
Tue, 15 Feb 2022 21:05:11 +0000 (13:05 -0800)
committerPaolo Pisati <paolo.pisati@canonical.com>
Mon, 7 Mar 2022 10:46:01 +0000 (11:46 +0100)
commitad0183a39badb86088286c24766dae80f2baa4a3
treee4c65b7fa67e1d439fceb1499a4729362e6880b4
parent6ef19a549712eef0ae1749e98066c52cbe1ae752
RDMA/ib_srp: Fix a deadlock

BugLink: https://bugs.launchpad.net/bugs/1963891
[ Upstream commit 081bdc9fe05bb23248f5effb6f811da3da4b8252 ]

Remove the flush_workqueue(system_long_wq) call since flushing
system_long_wq is deadlock-prone and since that call is redundant with a
preceding cancel_work_sync()

Link: https://lore.kernel.org/r/20220215210511.28303-3-bvanassche@acm.org
Fixes: ef6c49d87c34 ("IB/srp: Eliminate state SRP_TARGET_DEAD")
Reported-by: syzbot+831661966588c802aae9@syzkaller.appspotmail.com
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/infiniband/ulp/srp/ib_srp.c