aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_input.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/tcp_input.c')
-rw-r--r--net/ipv4/tcp_input.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c
index 7eec3383702b..74480e039005 100644
--- a/net/ipv4/tcp_input.c
+++ b/net/ipv4/tcp_input.c
@@ -815,12 +815,12 @@ static void tcp_update_pacing_rate(struct sock *sk)
815 if (likely(tp->srtt_us)) 815 if (likely(tp->srtt_us))
816 do_div(rate, tp->srtt_us); 816 do_div(rate, tp->srtt_us);
817 817
818 /* ACCESS_ONCE() is needed because sch_fq fetches sk_pacing_rate 818 /* WRITE_ONCE() is needed because sch_fq fetches sk_pacing_rate
819 * without any lock. We want to make sure compiler wont store 819 * without any lock. We want to make sure compiler wont store
820 * intermediate values in this location. 820 * intermediate values in this location.
821 */ 821 */
822 ACCESS_ONCE(sk->sk_pacing_rate) = min_t(u64, rate, 822 WRITE_ONCE(sk->sk_pacing_rate, min_t(u64, rate,
823 sk->sk_max_pacing_rate); 823 sk->sk_max_pacing_rate));
824} 824}
825 825
826/* Calculate rto without backoff. This is the second half of Van Jacobson's 826/* Calculate rto without backoff. This is the second half of Van Jacobson's