]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: remove one read_lock()/read_unlock() pair in rt6_check_neigh()
authorEric Dumazet <edumazet@google.com>
Mon, 13 Mar 2023 20:17:32 +0000 (20:17 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Oct 2023 20:00:46 +0000 (22:00 +0200)
commita4fcf8a242c6c89002aa9a406a83d370833f4a58
tree39a9ea0a6bfb203d77d2eb72da9145e7bebda68b
parent6e4c40aa270b72673473a3e0e8a8dc36284ad1f8
ipv6: remove one read_lock()/read_unlock() pair in rt6_check_neigh()

commit c486640aa710ddd06c13a7f7162126e1552e8842 upstream.

rt6_check_neigh() uses read_lock() to protect n->nud_state reading.

This seems overkill and causes false sharing.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Reviewed-by: Martin KaFai Lau <martin.lau@kernel.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv6/route.c