diff options
Diffstat (limited to 'net/ipv4/tcp_output.c')
-rw-r--r-- | net/ipv4/tcp_output.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c index 025e25093984..366cf06587b8 100644 --- a/net/ipv4/tcp_output.c +++ b/net/ipv4/tcp_output.c | |||
@@ -1930,10 +1930,8 @@ static bool tcp_write_xmit(struct sock *sk, unsigned int mss_now, int nonagle, | |||
1930 | /* It is possible TX completion already happened | 1930 | /* It is possible TX completion already happened |
1931 | * before we set TSQ_THROTTLED, so we must | 1931 | * before we set TSQ_THROTTLED, so we must |
1932 | * test again the condition. | 1932 | * test again the condition. |
1933 | * We abuse smp_mb__after_clear_bit() because | ||
1934 | * there is no smp_mb__after_set_bit() yet | ||
1935 | */ | 1933 | */ |
1936 | smp_mb__after_clear_bit(); | 1934 | smp_mb__after_atomic(); |
1937 | if (atomic_read(&sk->sk_wmem_alloc) > limit) | 1935 | if (atomic_read(&sk->sk_wmem_alloc) > limit) |
1938 | break; | 1936 | break; |
1939 | } | 1937 | } |