diff options
author | David S. Miller <davem@davemloft.net> | 2010-08-25 11:27:49 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-08-25 11:27:49 +0200 |
commit | ad1af0fedba14f82b240a03fe20eb9b2fdbd0357 (patch) | |
tree | 4d53aa8bc2d9df782aa792e52670ab55c7a44d5b /Documentation/unaligned-memory-access.txt | |
parent | pxa168_eth: silence gcc warnings (diff) | |
download | linux-ad1af0fedba14f82b240a03fe20eb9b2fdbd0357.tar.xz linux-ad1af0fedba14f82b240a03fe20eb9b2fdbd0357.zip |
tcp: Combat per-cpu skew in orphan tests.
As reported by Anton Blanchard when we use
percpu_counter_read_positive() to make our orphan socket limit checks,
the check can be off by up to num_cpus_online() * batch (which is 32
by default) which on a 128 cpu machine can be as large as the default
orphan limit itself.
Fix this by doing the full expensive sum check if the optimized check
triggers.
Reported-by: Anton Blanchard <anton@samba.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Acked-by: Eric Dumazet <eric.dumazet@gmail.com>
Diffstat (limited to 'Documentation/unaligned-memory-access.txt')
0 files changed, 0 insertions, 0 deletions