Netdev Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] batman-adv: Remove redundant 'flush_workqueue()' calls
@ 2022-01-10 21:32 Christophe JAILLET
2022-01-11 7:39 ` Sven Eckelmann
0 siblings, 1 reply; 2+ messages in thread
From: Christophe JAILLET @ 2022-01-10 21:32 UTC (permalink / raw)
To: Marek Lindner, Simon Wunderlich, Antonio Quartulli,
Sven Eckelmann, David S. Miller, Jakub Kicinski
Cc: linux-kernel, kernel-janitors, Christophe JAILLET, b.a.t.m.a.n, netdev
'destroy_workqueue()' already drains the queue before destroying it, so
there is no need to flush it explicitly.
Remove the redundant 'flush_workqueue()' calls.
This was generated with coccinelle:
@@
expression E;
@@
- flush_workqueue(E);
destroy_workqueue(E);
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
---
net/batman-adv/main.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/net/batman-adv/main.c b/net/batman-adv/main.c
index 5207cd8d6ad8..8f1b724d0412 100644
--- a/net/batman-adv/main.c
+++ b/net/batman-adv/main.c
@@ -132,7 +132,6 @@ static void __exit batadv_exit(void)
rtnl_link_unregister(&batadv_link_ops);
unregister_netdevice_notifier(&batadv_hard_if_notifier);
- flush_workqueue(batadv_event_workqueue);
destroy_workqueue(batadv_event_workqueue);
batadv_event_workqueue = NULL;
--
2.32.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] batman-adv: Remove redundant 'flush_workqueue()' calls
2022-01-10 21:32 [PATCH] batman-adv: Remove redundant 'flush_workqueue()' calls Christophe JAILLET
@ 2022-01-11 7:39 ` Sven Eckelmann
0 siblings, 0 replies; 2+ messages in thread
From: Sven Eckelmann @ 2022-01-11 7:39 UTC (permalink / raw)
To: Marek Lindner, Simon Wunderlich, Antonio Quartulli,
David S. Miller, Jakub Kicinski, Christophe JAILLET
Cc: linux-kernel, kernel-janitors, Christophe JAILLET, b.a.t.m.a.n, netdev
[-- Attachment #1: Type: text/plain, Size: 285 bytes --]
On Monday, 10 January 2022 22:32:27 CET Christophe JAILLET wrote:
> 'destroy_workqueue()' already drains the queue before destroying it, so
> there is no need to flush it explicitly.
>
> Remove the redundant 'flush_workqueue()' calls.
Thanks, it was now applied.
Kind regards,
Sven
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-01-11 7:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-10 21:32 [PATCH] batman-adv: Remove redundant 'flush_workqueue()' calls Christophe JAILLET
2022-01-11 7:39 ` Sven Eckelmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).