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