inet: lockless getsockopt(IP_OPTIONS)
authorEric Dumazet <edumazet@google.com>
Fri, 22 Sep 2023 03:42:17 +0000 (03:42 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 Oct 2023 18:39:18 +0000 (19:39 +0100)
commita4725d0d893599253a4bb283fdabdd4a66d9451d
tree4fd909c34741d50fa43a45780c342b6c183af4ac
parente08d0b3d172311e2bb500865c0d0038533d0ff11
inet: lockless getsockopt(IP_OPTIONS)

inet->inet_opt being RCU protected, we can use RCU instead
of locking the socket.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_sockglue.c