OSDN Git Service

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)
commit3dc94f93be161ec4203673de9a34b7362d8985b5
treeb06f18cb9a5fdac6ab626dd9368361fe606a2874
parent9a03cd8f38efb83c13fbe62aff50eea4efff93da
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