PERFORCE change 138855 for review
Sam Leffler
sam at FreeBSD.org
Fri Mar 28 14:16:27 PDT 2008
http://perforce.freebsd.org/chv.cgi?CH=138855
Change 138855 by sam at sam_ebb on 2008/03/28 21:15:53
blech, make the node table lock recursive until I can sort out
locking for the mlme ops
Affected files ...
.. //depot/projects/vap/sys/net80211/ieee80211_freebsd.h#21 edit
Differences ...
==== //depot/projects/vap/sys/net80211/ieee80211_freebsd.h#21 (text+ko) ====
@@ -33,7 +33,8 @@
*/
typedef struct mtx ieee80211_com_lock_t;
#define IEEE80211_LOCK_INIT(_ic, _name) \
- mtx_init(&(_ic)->ic_comlock, _name, "802.11 com lock", MTX_DEF | MTX_RECURSE)
+ mtx_init(&(_ic)->ic_comlock, _name, "802.11 com lock", \
+ MTX_DEF | MTX_RECURSE)
#define IEEE80211_LOCK_DESTROY(_ic) mtx_destroy(&(_ic)->ic_comlock)
#define IEEE80211_LOCK(_ic) mtx_lock(&(_ic)->ic_comlock)
#define IEEE80211_UNLOCK(_ic) mtx_unlock(&(_ic)->ic_comlock)
@@ -54,12 +55,11 @@
/*
* Node locking definitions.
- * NB: MTX_DUPOK is because we don't generate per-interface strings.
*/
typedef struct mtx ieee80211_node_lock_t;
#define IEEE80211_NODE_LOCK_INIT(_nt, _name) \
mtx_init(&(_nt)->nt_nodelock, _name, "802.11 node table", \
- MTX_DEF | MTX_DUPOK)
+ MTX_DEF | MTX_RECURSE)
#define IEEE80211_NODE_LOCK_DESTROY(_nt) mtx_destroy(&(_nt)->nt_nodelock)
#define IEEE80211_NODE_LOCK(_nt) mtx_lock(&(_nt)->nt_nodelock)
#define IEEE80211_NODE_IS_LOCKED(_nt) mtx_owned(&(_nt)->nt_nodelock)
More information about the p4-projects
mailing list