From: Sven Eckelmann Date: Sat, 18 Sep 2010 19:01:15 +0000 (+0200) Subject: Staging: batman-adv: Introduce if_list_lock to protect if_list X-Git-Tag: v2.6.37-rc1~60^2~3^2~550 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af2ac7bfec4176cad5e04402d116b5242d759bf8;p=pandora-kernel.git Staging: batman-adv: Introduce if_list_lock to protect if_list The update critical sections of if_list must be protected by a locking primitive other than RCU. The iterator must also be protected by the chosen locking mechanism. The rtnl_lock in hardif_remove_interfaces must also be moved outside the iterator primitive to ensure that we don't deadlock the kernel due to differently nested locks in hardif_remove_interfaces and hard_if_event. Signed-off-by: Sven Eckelmann Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed