]> git.baikalelectronics.ru Git - kernel.git/commit
[RTNETLINK]: Remove unnecessary locking in dump callbacks
authorPatrick McHardy <kaber@trash.net>
Tue, 17 Apr 2007 00:00:53 +0000 (17:00 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Thu, 26 Apr 2007 05:29:05 +0000 (22:29 -0700)
commit9e25dd705cdf8a9bf020602f23e74f527b3755a9
treef75cda674d8f2b62bcdb09e59f8bc7010003a91f
parentf2830cdc204c390a3dd531874dad84a10ab3915b
[RTNETLINK]: Remove unnecessary locking in dump callbacks

Since we're now holding the rtnl during the entire dump operation, we can
remove additional locking for rtnl protected data. This patch does that
for all simple cases (dev_base_lock for dev_base walking, RCU protection
for FIB rule dumping).

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_netlink.c
net/core/fib_rules.c
net/core/rtnetlink.c
net/decnet/dn_dev.c
net/ipv4/devinet.c
net/ipv6/addrconf.c