diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2010-01-17 15:49:02 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-01-19 16:43:09 -0500 |
commit | 5f2aa25e0e5b221a176ab3d1c51d51da265cb4a7 (patch) | |
tree | b991f42ad2f5874b6ac3d8fcb1a138e889d70c19 /net/wireless/core.h | |
parent | c57199bc32ebcd914253496486d2e09b1c9a3de0 (diff) | |
download | linux-stable-5f2aa25e0e5b221a176ab3d1c51d51da265cb4a7.tar.gz linux-stable-5f2aa25e0e5b221a176ab3d1c51d51da265cb4a7.tar.bz2 linux-stable-5f2aa25e0e5b221a176ab3d1c51d51da265cb4a7.zip |
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.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/wireless/core.h b/net/wireless/core.h index 2d6a6b9c0c43..c326a667022a 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 */ |