mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 14:11:52 +00:00
wifi: mac80211: allow for_each_sta_active_link() under RCU
Since we only use this to protect the dereference and with STA mutex, we can also allow this with just RCU. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Gregory Greenman <gregory.greenman@intel.com> Link: https://lore.kernel.org/r/20230920211508.73c3e04985f4.I52ef396d693e0e381a73eade06850137d8900948@changeid Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
8a58fc1ce4
commit
e865c827e9
@ -2393,7 +2393,7 @@ static inline bool lockdep_sta_mutex_held(struct ieee80211_sta *pubsta)
|
||||
for (link_id = 0; link_id < ARRAY_SIZE((sta)->link); link_id++) \
|
||||
if ((!(vif)->active_links || \
|
||||
(vif)->active_links & BIT(link_id)) && \
|
||||
((link_sta) = link_sta_dereference_protected(sta, link_id)))
|
||||
((link_sta) = link_sta_dereference_check(sta, link_id)))
|
||||
|
||||
/**
|
||||
* enum sta_notify_cmd - sta notify command
|
||||
|
Loading…
Reference in New Issue
Block a user