Skip to content

Commit

Permalink
net/smc: no need to flush smcd_dev's event_wq before destroying it
Browse files Browse the repository at this point in the history
destroy_workqueue() already calls drain_workqueue(), which is a stronger
variant of flush_workqueue().

Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: Karsten Graul <kgraul@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Julian Wiedmann authored and David S. Miller committed Jun 3, 2021
1 parent f8e0a68 commit 5e4a43c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion net/smc/smc_ism.c
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,6 @@ void smcd_unregister_dev(struct smcd_dev *smcd)
mutex_unlock(&smcd_dev_list.mutex);
smcd->going_away = 1;
smc_smcd_terminate_all(smcd);
flush_workqueue(smcd->event_wq);
destroy_workqueue(smcd->event_wq);

device_del(&smcd->dev);
Expand Down

0 comments on commit 5e4a43c

Please sign in to comment.