From: Sven Eckelmann Date: Tue, 3 May 2011 09:51:38 +0000 (+0200) Subject: batman-adv: Remove unnecessary hardif_list_lock X-Git-Tag: v3.0-rc1~377^2~137^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3caf5196c47a5d1c325308d8eb7f6b020ba12df;p=pandora-kernel.git batman-adv: Remove unnecessary hardif_list_lock hardif_list_lock is unneccessary because we already ensure that no multiple admin operations can take place through rtnl_lock. hardif_list_lock only adds additional overhead and complexity. Critical functions now check whether they are called with rtnl_lock using ASSERT_RTNL. It indirectly fixes the problem that orig_hash_del_if() expects that only one interface is deleted from hardif_list at a time, but hardif_remove_interfaces() removes all at once and then calls orig_hash_del_if(). Reported-by: Linus Lüssing Signed-off-by: Sven Eckelmann --- Reading git-diff-tree failed