]> git.baikalelectronics.ru Git - kernel.git/commit
rtnetlink: small rtnl lock pushdown
authorFlorian Westphal <fw@strlen.de>
Wed, 9 Aug 2017 18:41:50 +0000 (20:41 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Aug 2017 23:57:38 +0000 (16:57 -0700)
commit41c54d560a960553df8b7490130ef10a99041b09
tree5458da1272db981d04048d558e64baa5bdcdabbf
parenta3fcd14d6e45415031fdd3fda1de39ab91dc41b9
rtnetlink: small rtnl lock pushdown

instead of rtnl lock/unload at the top level, push it down
to the called function.

This is just an intermediate step, next commit switches protection
of the rtnl_link ops table to rcu, in which case (for dumps) the
rtnl lock is acquired only by the netlink dumper infrastructure
(current lock/unlock/dump/lock/unlock rtnl sequence becomes
 rcu lock/rcu unlock/dump).

Signed-off-by: Florian Westphal <fw@strlen.de>
Reviewed-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/rtnetlink.c