From: Sven Eckelmann Date: Sun, 21 Nov 2010 23:55:42 +0000 (+0100) Subject: Staging: batman-adv: Don't remove interface with spinlock held X-Git-Tag: v2.6.38-rc1~423^2~236 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd27509f49ab841bc10fd604ccd9e7f9914b7120;p=pandora-kernel.git 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 Signed-off-by: Sven Eckelmann Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed