aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/batman-adv/routing.c
diff options
context:
space:
mode:
authorSven Eckelmann <sven.eckelmann@gmx.de>2010-09-18 21:01:15 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2010-09-20 16:29:49 -0700
commitaf2ac7bfec4176cad5e04402d116b5242d759bf8 (patch)
tree444bf4077836e828c8d882ddf7c06ef17b136a38 /drivers/staging/batman-adv/routing.c
parentStaging: batman-adv: wait for call_rcu before unloading module (diff)
downloadlinux-dev-af2ac7bfec4176cad5e04402d116b5242d759bf8.tar.xz
linux-dev-af2ac7bfec4176cad5e04402d116b5242d759bf8.zip
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 <sven.eckelmann@gmx.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/batman-adv/routing.c')
0 files changed, 0 insertions, 0 deletions