Message ID | 20240222182903.1490015-2-philip.cox@canonical.com |
---|---|
State | New |
Headers | show |
Series | tcp: Add memory barrier to tcp_push | expand |
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c index 7e090b3adf2a..ae665ddf6243 100644 --- a/net/ipv4/tcp.c +++ b/net/ipv4/tcp.c @@ -722,6 +722,7 @@ void tcp_push(struct sock *sk, int flags, int mss_now, if (!test_bit(TSQ_THROTTLED, &sk->sk_tsq_flags)) { NET_INC_STATS(sock_net(sk), LINUX_MIB_TCPAUTOCORKING); set_bit(TSQ_THROTTLED, &sk->sk_tsq_flags); + smp_mb__after_atomic(); } /* It is possible TX completion already happened * before we set TSQ_THROTTLED.