]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: per netns FIB garbage collection
authorMichal Kubeček <mkubecek@suse.cz>
Tue, 8 Mar 2016 13:44:45 +0000 (14:44 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 8 Mar 2016 20:16:51 +0000 (15:16 -0500)
commit11f1e0281b6c4f9b7c66dda61c86a17fa9f87c27
treeb06f18cb9a5fdac6ab626dd9368361fe606a2874
parent503b95d2c1588d2c6e17920ae23b3bdf96a6ee11
ipv6: per netns FIB garbage collection

One of our customers observed issues with FIB6 garbage collectors
running in different network namespaces blocking each other, resulting
in soft lockups (fib6_run_gc() initiated from timer runs always in
forced mode).

Now that FIB6 walkers are separated per namespace, there is no more need
for instances of fib6_run_gc() in different namespaces blocking each
other. There is still a call to icmp6_dst_gc() which operates on shared
data but this function is protected by its own shared lock.

Signed-off-by: Michal Kubecek <mkubecek@suse.cz>
Reviewed-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/netns/ipv6.h
net/ipv6/ip6_fib.c