]> git.baikalelectronics.ru Git - 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)
committerJason Gunthorpe <jgg@nvidia.com>
Wed, 23 Feb 2022 19:03:58 +0000 (15:03 -0400)
commitdb8152b828ba2487fe1e766702aefb2f92ec8538
treefc3a51502d877b5de8ead63c0b783b3d4aa88585
parent04e5e77c771eb57c5e2f0d226598050d355f759c
RDMA/ib_srp: Fix a deadlock

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: 0a3e96bac3b7 ("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>
drivers/infiniband/ulp/srp/ib_srp.c