diff options
author | Eric Dumazet <[email protected]> | 2023-08-04 14:46:16 +0000 |
---|---|---|
committer | David S. Miller <[email protected]> | 2023-08-06 08:24:56 +0100 |
commit | 6e97ba552b8d3dd074a28b8600740b8bed42267b (patch) | |
tree | caae5595891ec6a1e0d7d138186032e3d909eb96 /net/ipv4/tcp_input.c | |
parent | a81722ddd7e4d76c9bbff078d29416e18c6d7f71 (diff) |
tcp: set TCP_DEFER_ACCEPT locklessly
rskq_defer_accept field can be read/written without
the need of holding the socket lock.
Signed-off-by: Eric Dumazet <[email protected]>
Acked-by: Soheil Hassas Yeganeh <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_input.c')
-rw-r--r-- | net/ipv4/tcp_input.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c index deac708250e6..8e96ebe373d7 100644 --- a/net/ipv4/tcp_input.c +++ b/net/ipv4/tcp_input.c @@ -6324,7 +6324,7 @@ consume: if (fastopen_fail) return -1; if (sk->sk_write_pending || - icsk->icsk_accept_queue.rskq_defer_accept || + READ_ONCE(icsk->icsk_accept_queue.rskq_defer_accept) || inet_csk_in_pingpong_mode(sk)) { /* Save one ACK. Data will be ready after * several ticks, if write_pending is set. |