Eric Dumazet e67f88dd12 net: dont hold rtnl mutex during netlink dump callbacks
Four years ago, Patrick made a change to hold rtnl mutex during netlink
dump callbacks.

I believe it was a wrong move. This slows down concurrent dumps, making
good old /proc/net/ files faster than rtnetlink in some situations.

This occurred to me because one "ip link show dev ..." was _very_ slow
on a workload adding/removing network devices in background.

All dump callbacks are able to use RCU locking now, so this patch does
roughly a revert of commits :

1c2d670f366 : [RTNETLINK]: Hold rtnl_mutex during netlink dump callbacks
6313c1e0992 : [RTNETLINK]: Remove unnecessary locking in dump callbacks

This let writers fight for rtnl mutex and readers going full speed.

It also takes care of phonet : phonet_route_get() is now called from rcu
read section. I renamed it to phonet_route_get_rcu()

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Patrick McHardy <kaber@trash.net>
Cc: Remi Denis-Courmont <remi.denis-courmont@nokia.com>
Acked-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2011-05-02 15:26:28 -07:00
..
2011-03-31 11:26:23 -03:00
2011-04-11 15:08:47 -07:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-04-27 13:14:06 -07:00
2010-12-31 10:47:46 -08:00
2010-06-03 03:21:52 -07:00
2010-10-27 11:37:32 -07:00
2010-10-25 13:09:44 -07:00
2011-03-31 11:26:23 -03:00
2010-12-19 21:59:35 -08:00
2010-09-23 14:33:39 -07:00
2010-10-25 13:09:45 -07:00
2011-04-28 13:16:35 -07:00
2010-10-27 11:37:32 -07:00
2011-03-31 11:26:23 -03:00
2010-06-03 03:21:52 -07:00
2011-03-15 09:36:50 +09:00
2011-03-31 11:26:23 -03:00
2011-01-24 15:32:47 -08:00
2010-11-24 11:16:43 -08:00
2011-03-01 12:35:03 -08:00
2011-03-01 12:35:03 -08:00
2011-03-31 11:26:23 -03:00
2010-11-28 11:12:20 -08:00
2011-04-22 11:04:14 -07:00