diff options
author | Sven Eckelmann | 2010-09-18 21:01:15 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2010-09-21 01:29:49 +0200 |
commit | af2ac7bfec4176cad5e04402d116b5242d759bf8 (patch) | |
tree | 444bf4077836e828c8d882ddf7c06ef17b136a38 /block | |
parent | Staging: batman-adv: wait for call_rcu before unloading module (diff) | |
download | kernel-qcow2-linux-af2ac7bfec4176cad5e04402d116b5242d759bf8.tar.gz kernel-qcow2-linux-af2ac7bfec4176cad5e04402d116b5242d759bf8.tar.xz kernel-qcow2-linux-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 'block')
0 files changed, 0 insertions, 0 deletions