diff options
| author | Stephen Hemminger <[email protected]> | 2009-04-29 05:36:33 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2009-04-29 05:36:33 +0000 |
| commit | 942e4a2bd680c606af0211e64eb216be2e19bf61 (patch) | |
| tree | a83af49242d4a8d53aa0f3b5814eb17da72edc09 /arch/m32r/include/asm/assembler.h | |
| parent | net: Avoid extra wakeups of threads blocked in wait_for_packet() (diff) | |
| download | kernel-942e4a2bd680c606af0211e64eb216be2e19bf61.tar.gz kernel-942e4a2bd680c606af0211e64eb216be2e19bf61.zip | |
netfilter: revised locking for x_tables
The x_tables are organized with a table structure and a per-cpu copies
of the counters and rules. On older kernels there was a reader/writer
lock per table which was a performance bottleneck. In 2.6.30-rc, this
was converted to use RCU and the counters/rules which solved the performance
problems for do_table but made replacing rules much slower because of
the necessary RCU grace period.
This version uses a per-cpu set of spinlocks and counters to allow to
table processing to proceed without the cache thrashing of a global
reader lock and keeps the same performance for table updates.
Signed-off-by: Stephen Hemminger <[email protected]>
Acked-by: Linus Torvalds <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'arch/m32r/include/asm/assembler.h')
0 files changed, 0 insertions, 0 deletions
