diff options
author | Eric Dumazet <edumazet@google.com> | 2025-06-20 15:55:35 +0000 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2025-06-23 17:05:11 -0700 |
commit | 3169e36ae14802b01abe4bfa7ec593b0a1af5cc7 (patch) | |
tree | cf5e5c786662af907bf4cfef42b736493a00fe6b /net/strparser/strparser.c | |
parent | 0fd9e5958ebb41188700b566467a1d9a3ebcdece (diff) |
net: make sk->sk_sndtimeo lockless
Followup of commit 285975dd6742 ("net: annotate data-races around
sk->sk_{rcv|snd}timeo").
Remove lock_sock()/release_sock() from sock_set_sndtimeo(),
and add READ_ONCE()/WRITE_ONCE() where it is needed.
Also SO_SNDTIMEO_OLD and SO_SNDTIMEO_NEW can call sock_set_timeout()
without holding the socket lock.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20250620155536.335520-2-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/strparser/strparser.c')
0 files changed, 0 insertions, 0 deletions