From: Johannes Berg Date: Tue, 18 Sep 2007 21:29:21 +0000 (-0400) Subject: [PATCH] mac80211: fix virtual interface locking X-Git-Tag: v2.6.24-rc1~1454^2~322 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79010420cc3f78eab911598bfdd29c4b06a83e1f;p=pandora-kernel.git [PATCH] mac80211: fix virtual interface locking Florian Lohoff noticed a bug in mac80211: when bringing the master interface down while other virtual interfaces are up we call dev_close() under a spinlock which is not allowed. This patch removes the sub_if_lock used by mac80211 in favour of using an RCU list. All list manipulations are already done under rtnl so are well protected against each other, and the read-side locks we took in the RX and TX code are already in RCU read-side critical sections. Signed-off-by: Johannes Berg Cc: Florian Lohoff Cc: Herbert Xu Cc: Michal Piotrowski Cc: Satyam Sharma Signed-off-by: Michael Wu Signed-off-by: John W. Linville --- Reading git-diff-tree failed