Re: [PATCH net-next v2] ipv6: try not to take rtnl_lock in ip6mr_sk_done

2017-11-12 Thread David Miller
From: frugg...@arista.com (Francesco Ruggeri) Date: Wed, 08 Nov 2017 11:23:46 -0800 > Avoid traversing the list of mr6_tables (which requires the > rtnl_lock) in ip6mr_sk_done(), when we know in advance that > a match will not be found. > This can happen when rawv6_close()/ip6mr_sk_done() is invok

[PATCH net-next v2] ipv6: try not to take rtnl_lock in ip6mr_sk_done

2017-11-08 Thread Francesco Ruggeri
Avoid traversing the list of mr6_tables (which requires the rtnl_lock) in ip6mr_sk_done(), when we know in advance that a match will not be found. This can happen when rawv6_close()/ip6mr_sk_done() is invoked on non-mroute6 sockets. This patch helps reduce rtnl_lock contention when destroying a lar