diff options
| author | Eric Dumazet <edumazet@google.com> | 2025-06-20 18:55:36 +0300 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2025-06-24 03:05:12 +0300 |
| commit | 935b67675a9f233aa4ac4ae6452b2cc45418d839 (patch) | |
| tree | e20347e07374de053e0dac18a6d49364a8823660 /net/unix/af_unix.c | |
| parent | 3169e36ae14802b01abe4bfa7ec593b0a1af5cc7 (diff) | |
| download | linux-935b67675a9f233aa4ac4ae6452b2cc45418d839.tar.xz | |
net: make sk->sk_rcvtimeo lockless
Followup of commit 285975dd6742 ("net: annotate data-races around
sk->sk_{rcv|snd}timeo").
Remove lock_sock()/release_sock() from ksmbd_tcp_rcv_timeout()
and add READ_ONCE()/WRITE_ONCE() where it is needed.
Also SO_RCVTIMEO_OLD and SO_RCVTIMEO_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-3-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
