]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
net/smc: no need to flush smcd_dev's event_wq before destroying it
authorJulian Wiedmann <jwi@linux.ibm.com>
Wed, 2 Jun 2021 08:56:26 +0000 (10:56 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Jun 2021 20:54:49 +0000 (13:54 -0700)
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>
net/smc/smc_ism.c

index 967712ba52a0d36d525ce808ad1d0ffb62bf5837..9cb2df28996364ef297e975cbbe886c691af8d9f 100644 (file)
@@ -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);