diff options
Diffstat (limited to 'net/ipv4/tcp_input.c')
-rw-r--r-- | net/ipv4/tcp_input.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c index 6171f92be090..a914e0607895 100644 --- a/net/ipv4/tcp_input.c +++ b/net/ipv4/tcp_input.c | |||
@@ -3355,9 +3355,10 @@ static void tcp_snd_una_update(struct tcp_sock *tp, u32 ack) | |||
3355 | { | 3355 | { |
3356 | u32 delta = ack - tp->snd_una; | 3356 | u32 delta = ack - tp->snd_una; |
3357 | 3357 | ||
3358 | u64_stats_update_begin(&tp->syncp); | 3358 | sock_owned_by_me((struct sock *)tp); |
3359 | u64_stats_update_begin_raw(&tp->syncp); | ||
3359 | tp->bytes_acked += delta; | 3360 | tp->bytes_acked += delta; |
3360 | u64_stats_update_end(&tp->syncp); | 3361 | u64_stats_update_end_raw(&tp->syncp); |
3361 | tp->snd_una = ack; | 3362 | tp->snd_una = ack; |
3362 | } | 3363 | } |
3363 | 3364 | ||
@@ -3366,9 +3367,10 @@ static void tcp_rcv_nxt_update(struct tcp_sock *tp, u32 seq) | |||
3366 | { | 3367 | { |
3367 | u32 delta = seq - tp->rcv_nxt; | 3368 | u32 delta = seq - tp->rcv_nxt; |
3368 | 3369 | ||
3369 | u64_stats_update_begin(&tp->syncp); | 3370 | sock_owned_by_me((struct sock *)tp); |
3371 | u64_stats_update_begin_raw(&tp->syncp); | ||
3370 | tp->bytes_received += delta; | 3372 | tp->bytes_received += delta; |
3371 | u64_stats_update_end(&tp->syncp); | 3373 | u64_stats_update_end_raw(&tp->syncp); |
3372 | tp->rcv_nxt = seq; | 3374 | tp->rcv_nxt = seq; |
3373 | } | 3375 | } |
3374 | 3376 | ||