tcp_metrics: use parallel_ops for tcp_metrics_nl_family
Subsystems (3)
PATCH 1/1 tcp_metrics: use parallel_ops for tcp_metrics_nl_family
TCP_METRICS_CMD_GET and TCP_METRICS_CMD_DEL use their own locking (tcp_metrics_lock and RCU),
they do not need genl_mutex protection.
Signed-off-by Eric Dumazet <[email protected]>
--- net/ipv4/tcp_metrics.c | 1 + 1 file changed, 1 insertion(+)
net/ipv4/tcp_metrics.c +1 -0
@@ -988,6 +988,7 @@ static struct genl_family tcp_metrics_nl_family __ro_after_init = { .maxattr = TCP_METRICS_ATTR_MAX, .policy = tcp_metrics_nl_policy, .netnsok = true, + .parallel_ops = true, .module = THIS_MODULE, .small_ops = tcp_metrics_nl_ops, .n_small_ops = ARRAY_SIZE(tcp_metrics_nl_ops),
Signature · 1 line
2.44.0.683.g7961c838ac-goog
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 8 lines · On Tue, 16 Apr 2024 16:20:25 +0000 you wrote:
TCP_METRICS_CMD_GETandTCP_METRICS_CMD_DELuse their own locking (tcp_metrics_lockand RCU),
they do not needgenl_mutexprotection.Signed-off-by Eric Dumazet <[email protected]>--- net/ipv4/tcp_metrics.c | 1 + 1 file changed, 1 insertion(+)
Here is the summary with links:
- [net-next] tcp_metrics: use parallel_ops for tcp_metrics_nl_family
https://git.kernel.org/netdev/net-next/c/ba3de6d8035e
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html