All of lore.kernel.org
 help / color / mirror / Atom feed
* - mac80211-fix-notify_mac-function.patch removed from -mm tree
@ 2008-11-13 21:28 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2008-11-13 21:28 UTC (permalink / raw)
  To: johannes, linville, mm-commits


The patch titled
     mac80211: fix notify_mac function
has been removed from the -mm tree.  Its filename was
     mac80211-fix-notify_mac-function.patch

This patch was dropped because it was merged into mainline or a subsystem tree

The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/

------------------------------------------------------
Subject: mac80211: fix notify_mac function
From: Johannes Berg <johannes@sipsolutions.net>

The ieee80211_notify_mac() function uses ieee80211_sta_req_auth() which in
turn calls ieee80211_set_disassoc() which calls a few functions that need
to be able to sleep, so ieee80211_notify_mac() cannot use RCU locking for
the interface list and must use rtnl locking instead.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Cc: "John W. Linville" <linville@tuxdriver.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 net/mac80211/mlme.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff -puN net/mac80211/mlme.c~mac80211-fix-notify_mac-function net/mac80211/mlme.c
--- a/net/mac80211/mlme.c~mac80211-fix-notify_mac-function
+++ a/net/mac80211/mlme.c
@@ -2570,14 +2570,14 @@ void ieee80211_notify_mac(struct ieee802
 
 	switch (notif_type) {
 	case IEEE80211_NOTIFY_RE_ASSOC:
-		rcu_read_lock();
-		list_for_each_entry_rcu(sdata, &local->interfaces, list) {
+		rtnl_lock();
+		list_for_each_entry(sdata, &local->interfaces, list) {
 			if (sdata->vif.type != NL80211_IFTYPE_STATION)
 				continue;
 
 			ieee80211_sta_req_auth(sdata, &sdata->u.sta);
 		}
-		rcu_read_unlock();
+		rtnl_unlock();
 		break;
 	}
 }
_

Patches currently in -mm which might be from johannes@sipsolutions.net are

origin.patch
linux-next.patch
drivers-net-wireless-ath9k-rcc-use-array_size.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-11-13 21:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-13 21:28 - mac80211-fix-notify_mac-function.patch removed from -mm tree akpm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.