inet: lockless IP_PKTOPTIONS implementation
authorEric Dumazet <edumazet@google.com>
Fri, 22 Sep 2023 03:42:20 +0000 (03:42 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 Oct 2023 18:39:19 +0000 (19:39 +0100)
commitc4480eb5504c9771f935cbca58a3b874bdd36af8
tree557c1fe16766040ad2c71c784a1e88fd90977997
parent959d5c11601b2b337c364b2e3102d392365e3dd3
inet: lockless IP_PKTOPTIONS implementation

Current implementation is already lockless, because the socket
lock is released before reading socket fields.

Add missing READ_ONCE() annotations.

Note that corresponding WRITE_ONCE() are needed, the order
of the patches do not really matter.

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