From: Tariq Toukan Date: Mon, 1 Aug 2022 11:24:44 +0000 (+0300) Subject: net/tls: Remove redundant workqueue flush before destroy X-Git-Tag: v6.0-rc1~141^2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d81c7cdd7a6ddffcc8c00c991e3d6e24db84bd9e;p=thirdparty%2Fkernel%2Flinux.git net/tls: Remove redundant workqueue flush before destroy destroy_workqueue() safely destroys the workqueue after draining it. No need for the explicit call to flush_workqueue(). Remove it. Signed-off-by: Tariq Toukan Link: https://lore.kernel.org/r/20220801112444.26175-1-tariqt@nvidia.com Signed-off-by: Jakub Kicinski --- diff --git a/net/tls/tls_device.c b/net/tls/tls_device.c index 18c7e5c6d2283..e3e6cf75aa030 100644 --- a/net/tls/tls_device.c +++ b/net/tls/tls_device.c @@ -1449,7 +1449,6 @@ int __init tls_device_init(void) void __exit tls_device_cleanup(void) { unregister_netdevice_notifier(&tls_dev_notifier); - flush_workqueue(destruct_wq); destroy_workqueue(destruct_wq); clean_acked_data_flush(); }