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>
This commit is contained in:
committed by
John W. Linville
parent
c57199bc32
commit
5f2aa25e0e
@@ -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 */
|
||||
|
Reference in New Issue
Block a user