ipv6: make addrconf_wq single threaded
commit dfd2ee086a
upstream.
Both addrconf_verify_work() and addrconf_dad_work() acquire rtnl,
there is no point trying to have one thread per cpu.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Link: https://lore.kernel.org/r/20240201173031.3654257-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Brett A C Sheffield <bacs@librecast.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 4cb17b11c8af2fa9de840ffe7fc0bb712f894242)
This commit is contained in:
parent
4544b4d4a6
commit
2574ba26e5
|
@ -7383,7 +7383,8 @@ int __init addrconf_init(void)
|
||||||
if (err < 0)
|
if (err < 0)
|
||||||
goto out_addrlabel;
|
goto out_addrlabel;
|
||||||
|
|
||||||
addrconf_wq = create_workqueue("ipv6_addrconf");
|
/* All works using addrconf_wq need to lock rtnl. */
|
||||||
|
addrconf_wq = create_singlethread_workqueue("ipv6_addrconf");
|
||||||
if (!addrconf_wq) {
|
if (!addrconf_wq) {
|
||||||
err = -ENOMEM;
|
err = -ENOMEM;
|
||||||
goto out_nowq;
|
goto out_nowq;
|
||||||
|
|
Loading…
Reference in New Issue