From: Julian Wiedmann Date: Wed, 2 Jun 2021 08:56:26 +0000 (+0200) Subject: net/smc: no need to flush smcd_dev's event_wq before destroying it X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=5e4a43ceb22a6fd2d372fde923a6a95ef6728fd7;p=linux.git net/smc: no need to flush smcd_dev's event_wq before destroying it destroy_workqueue() already calls drain_workqueue(), which is a stronger variant of flush_workqueue(). Signed-off-by: Julian Wiedmann Signed-off-by: Karsten Graul Signed-off-by: David S. Miller --- diff --git a/net/smc/smc_ism.c b/net/smc/smc_ism.c index 967712ba52a0d..9cb2df2899636 100644 --- a/net/smc/smc_ism.c +++ b/net/smc/smc_ism.c @@ -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);