summaryrefslogtreecommitdiffstats
path: root/net/wireless/core.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2010-01-17 15:49:02 +0100
committerJohn W. Linville <linville@tuxdriver.com>2010-01-19 16:43:09 -0500
commit5f2aa25e0e5b221a176ab3d1c51d51da265cb4a7 (patch)
treeb991f42ad2f5874b6ac3d8fcb1a138e889d70c19 /net/wireless/core.h
parentc57199bc32ebcd914253496486d2e09b1c9a3de0 (diff)
downloadop-kernel-dev-5f2aa25e0e5b221a176ab3d1c51d51da265cb4a7.zip
op-kernel-dev-5f2aa25e0e5b221a176ab3d1c51d51da265cb4a7.tar.gz
cfg80211: rcu-ify rdev and wdev
Future code will need to look up rdev and wdev within atomic sections, but currently we need to lock a mutex for such lookups. Change the list handling for both to be RCU-safe so that we can look them up in rcu sections instead in the future. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/wireless/core.h')
-rw-r--r--net/wireless/core.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/wireless/core.h b/net/wireless/core.h
index 2d6a6b9..c326a66 100644
--- a/net/wireless/core.h
+++ b/net/wireless/core.h
@@ -1,7 +1,7 @@
/*
* Wireless configuration interface internals.
*
- * Copyright 2006-2009 Johannes Berg <johannes@sipsolutions.net>
+ * Copyright 2006-2010 Johannes Berg <johannes@sipsolutions.net>
*/
#ifndef __NET_WIRELESS_CORE_H
#define __NET_WIRELESS_CORE_H
@@ -48,6 +48,7 @@ struct cfg80211_registered_device {
/* associate netdev list */
struct mutex devlist_mtx;
+ /* protected by devlist_mtx or RCU */
struct list_head netdev_list;
int devlist_generation;
int opencount; /* also protected by devlist_mtx */
OpenPOWER on IntegriCloud