]> git.karo-electronics.de Git - linux-beck.git/commit
Staging: batman-adv: Don't remove interface with spinlock held
authorSven Eckelmann <sven.eckelmann@gmx.de>
Sun, 21 Nov 2010 23:55:42 +0000 (00:55 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 29 Nov 2010 19:09:09 +0000 (11:09 -0800)
commitbd27509f49ab841bc10fd604ccd9e7f9914b7120
treeb7367123777cf0a5da1d2133e831afcb3c21d533
parent43fc987224a45dc53ccc302df5889230d9587921
Staging: batman-adv: Don't remove interface with spinlock held

We call a lot of the netdevice code when holding if_list_lock which will
spin the whole time. This is not necessary because we only want to
protect the access to the list to be serialized. An extra queue can be
used which hold all interfaces which should be removed and then use that
queue without any locks for netdevice cleanup.

Reported-by: Rafal Lesniak <lesniak@eresi-project.org>
Signed-off-by: Sven Eckelmann <sven.eckelmann@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/batman-adv/hard-interface.c