ipv6: make addrconf_wq single threaded
Subsystems (3)
PATCH 1/1 ipv6: make addrconf_wq single threaded
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 <[email protected]>
--- net/ipv6/addrconf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
net/ipv6/addrconf.c +2 -1
@@ -7349,7 +7349,8 @@ int __init addrconf_init(void)if (err <0 ) 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) { err = -ENOMEM ; goto out_nowq;
Signature · 1 line
2.43.0.429.g432eaa2c6b-goog
Quoted 8 lines · Eric Dumazet
Both
addrconf_verify_work()andaddrconf_dad_work()acquire rtnl, there is no point trying to have one thread per cpu.Signed-off-by Eric Dumazet <[email protected]>--- net/ipv6/addrconf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Reviewed-by David Ahern <[email protected]>
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Quoted 7 lines · On Thu, 1 Feb 2024 17:30:31 +0000 you wrote:
Both
addrconf_verify_work()andaddrconf_dad_work()acquire rtnl, there is no point trying to have one thread per cpu.Signed-off-by Eric Dumazet <[email protected]>--- net/ipv6/addrconf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Here is the summary with links:
- [net-next] ipv6: make addrconf_wq single threaded
https://git.kernel.org/netdev/net-next/c/dfd2ee086a63
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html