All of lore.kernel.org
 help / color / mirror / Atom feed
From: akpm@linux-foundation.org
To: johannes@sipsolutions.net, linville@tuxdriver.com,
	mm-commits@vger.kernel.org
Subject: - mac80211-fix-notify_mac-function.patch removed from -mm tree
Date: Thu, 13 Nov 2008 13:28:18 -0800	[thread overview]
Message-ID: <200811132128.mADLSIjZ028406@imap1.linux-foundation.org> (raw)


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


                 reply	other threads:[~2008-11-13 21:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200811132128.mADLSIjZ028406@imap1.linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=johannes@sipsolutions.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    --cc=mm-commits@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.