From: Eric Dumazet Date: Wed, 4 Nov 2009 13:43:23 +0000 (-0800) Subject: net: Introduce for_each_netdev_rcu() iterator X-Git-Tag: v2.6.33-rc1~388^2~517 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6d14c84566d6b70ad9dc1618db0dec87cca9300;p=pandora-kernel.git net: Introduce for_each_netdev_rcu() iterator Adds RCU management to the list of netdevices. Convert some for_each_netdev() users to RCU version, if it can avoid read_lock-ing dev_base_lock Ie: read_lock(&dev_base_loack); for_each_netdev(net, dev) some_action(); read_unlock(&dev_base_lock); becomes : rcu_read_lock(); for_each_netdev_rcu(net, dev) some_action(); rcu_read_unlock(); Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed