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 f0b572fe959a..dabbf1d392fb 100644
--- a/net/ipv4/tcp_input.c
+++ b/net/ipv4/tcp_input.c
@@ -795,12 +795,12 @@ static void tcp_update_pacing_rate(struct sock *sk)
795 if (likely(tp->srtt_us)) 795 if (likely(tp->srtt_us))
796 do_div(rate, tp->srtt_us); 796 do_div(rate, tp->srtt_us);
797 797
798 /* ACCESS_ONCE() is needed because sch_fq fetches sk_pacing_rate 798 /* WRITE_ONCE() is needed because sch_fq fetches sk_pacing_rate
799 * without any lock. We want to make sure compiler wont store 799 * without any lock. We want to make sure compiler wont store
800 * intermediate values in this location. 800 * intermediate values in this location.
801 */ 801 */
802 ACCESS_ONCE(sk->sk_pacing_rate) = min_t(u64, rate, 802 WRITE_ONCE(sk->sk_pacing_rate, min_t(u64, rate,
803 sk->sk_max_pacing_rate); 803 sk->sk_max_pacing_rate));
804} 804}
805 805
806/* Calculate rto without backoff. This is the second half of Van Jacobson's 806/* Calculate rto without backoff. This is the second half of Van Jacobson's