]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'ipv6-per-netns-gc'
authorDavid S. Miller <davem@davemloft.net>
Tue, 8 Mar 2016 20:16:51 +0000 (15:16 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 8 Mar 2016 20:16:51 +0000 (15:16 -0500)
commit952441c9d27c22aab82de5fa0d03ca0f86ef4c0d
treeb06f18cb9a5fdac6ab626dd9368361fe606a2874
parent7733f85c7e60d38bedaf35e89098bc2883aac5fa
parent1345079c21f183ffaec4b4d9300e665d80d206a7
Merge branch 'ipv6-per-netns-gc'

Michal Kubecek says:

====================
ipv6: per netns FIB6 walkers and garbage collector

Commit 108ae8dd3e8b ("ipv6: prevent fib6_run_gc() contention") reduced
the risk of contention on FIB6 garbage collector lock on systems with
many CPUs. However, one of our customers can still observe heavy
contention on fib6_gc_lock which can even trigger the soft lockup
detector.

This is caused by garbage collector running in forced mode from a timer.
While there is one timer per network namespace, the instances of
fib6_run_gc() running from them are protected by one global spinlock so
that only one garbage collector can run at any moment and other
namespaces have to wait. As most relevant data structures are separated
per netns, there is little reason for garbage collectors blocking each
other.

Similar problem exists for walkers: changes in one tree do not need to
adjust (and block) walkers traversing FIB trees in other namespaces.

This series separates both the walkers infrastructure and garbage
collector so that they work independently in network namespaces.

v2: get rid of ifdef in ipv6_route_seq_setup_walk(), pass net from
callers instead
====================

Signed-off-by: David S. Miller <davem@davemloft.net>