diff options
author | Eric Dumazet <edumazet@google.com> | 2023-03-15 20:57:41 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-03-17 08:25:05 +0000 |
commit | cee1af825d65b8122627fc2efbc36c1bd51ee103 (patch) | |
tree | 0ac92afa20149068ef410606e944163ba6a80a14 /net/ipv4/tcp_input.c | |
parent | 731b73dba359e3ff00517c13aa0daa82b34ff466 (diff) | |
download | linux-stable-cee1af825d65b8122627fc2efbc36c1bd51ee103.tar.gz linux-stable-cee1af825d65b8122627fc2efbc36c1bd51ee103.tar.bz2 linux-stable-cee1af825d65b8122627fc2efbc36c1bd51ee103.zip |
tcp: annotate lockless accesses to sk->sk_err_soft
This field can be read/written without lock synchronization.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
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 cc072d2cfcd8..8b5b6ca6617d 100644 --- a/net/ipv4/tcp_input.c +++ b/net/ipv4/tcp_input.c @@ -3874,7 +3874,7 @@ static int tcp_ack(struct sock *sk, const struct sk_buff *skb, int flag) /* We passed data and got it acked, remove any soft error * log. Something worked... */ - sk->sk_err_soft = 0; + WRITE_ONCE(sk->sk_err_soft, 0); icsk->icsk_probes_out = 0; tp->rcv_tstamp = tcp_jiffies32; if (!prior_packets) |