mac80211: introduce plink lock for plink fields
authorBob Copeland <me@bobcopeland.com>
Mon, 13 Apr 2015 21:26:28 +0000 (17:26 -0400)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 20 Apr 2015 11:05:29 +0000 (13:05 +0200)
commit48bf6beddf455b0cb605915081f3428960a6224e
tree98e652b5c3970a61d6dee510fca33c874370cdcf
parent388f997620cb57372c494a194e9698b28cc179b8
mac80211: introduce plink lock for plink fields

The mesh plink code uses sta->lock to serialize access to the
plink state fields between the peer link state machine and the
peer link timer.  Some paths (e.g. those involving
mps_qos_null_tx()) unfortunately hold this spinlock across
frame tx, which is soon to be disallowed.  Add a new spinlock
just for plink access.

Signed-off-by: Bob Copeland <me@bobcopeland.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mesh_plink.c
net/mac80211/sta_info.c
net/mac80211/sta_info.h