Merge commit '3cf2f34' into sched/core, to fix build error
[linux-2.6-block.git] / net / ipv4 / tcp_output.c
index 12d6016bdd9a675aa39fb24fd91fb8c80c741ed3..2d340bd2cd3d50d97da3e86b77de8117eabe0c10 100644 (file)
@@ -1930,10 +1930,8 @@ static bool tcp_write_xmit(struct sock *sk, unsigned int mss_now, int nonagle,
                        /* It is possible TX completion already happened
                         * before we set TSQ_THROTTLED, so we must
                         * test again the condition.
-                        * We abuse smp_mb__after_clear_bit() because
-                        * there is no smp_mb__after_set_bit() yet
                         */
-                       smp_mb__after_clear_bit();
+                       smp_mb__after_atomic();
                        if (atomic_read(&sk->sk_wmem_alloc) > limit)
                                break;
                }