mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-11-30 15:53:22 -05:00
RDMA/ib_srp: Fix a deadlock
[ 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/[email protected]
Fixes: ef6c49d87c ("IB/srp: Eliminate state SRP_TARGET_DEAD")
Reported-by: [email protected]
Signed-off-by: Bart Van Assche <[email protected]>
Reviewed-by: Leon Romanovsky <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
This commit is contained in:
parent
b7e2b91fcb
commit
901206f71e
1 changed files with 4 additions and 2 deletions
|
|
@ -4222,9 +4222,11 @@ static void srp_remove_one(struct ib_device *device, void *client_data)
|
|||
spin_unlock(&host->target_lock);
|
||||
|
||||
/*
|
||||
* Wait for tl_err and target port removal tasks.
|
||||
* srp_queue_remove_work() queues a call to
|
||||
* srp_remove_target(). The latter function cancels
|
||||
* target->tl_err_work so waiting for the remove works to
|
||||
* finish is sufficient.
|
||||
*/
|
||||
flush_workqueue(system_long_wq);
|
||||
flush_workqueue(srp_remove_wq);
|
||||
|
||||
kfree(host);
|
||||
|
|
|
|||
Loading…
Reference in a new issue