mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 22:21:40 +00:00
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 <tariqt@nvidia.com> Link: https://lore.kernel.org/r/20220801112444.26175-1-tariqt@nvidia.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
2e8f205d91
commit
d81c7cdd7a
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user