From: Johannes Berg With the context analysis annotations it's now obvious that the extra RCU critical sections aren't needed, so remove them. Signed-off-by: Johannes Berg --- net/mac80211/rx.c | 3 --- net/mac80211/tx.c | 2 -- 2 files changed, 5 deletions(-) diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c index b3df0f010b0d..4d145b3025fb 100644 --- a/net/mac80211/rx.c +++ b/net/mac80211/rx.c @@ -2975,7 +2975,6 @@ ieee80211_rx_mesh_data(struct ieee80211_sub_if_data *sdata, struct sta_info *sta else return RX_DROP_U_MESH_BAD_AE; - rcu_read_lock(); mppath = mpp_path_lookup(sdata, proxied_addr); if (!mppath) { mpp_path_add(sdata, proxied_addr, eth->h_source); @@ -2992,8 +2991,6 @@ ieee80211_rx_mesh_data(struct ieee80211_sub_if_data *sdata, struct sta_info *sta /* flush fast xmit cache if the address path changed */ if (update) mesh_fast_tx_flush_addr(sdata, proxied_addr); - - rcu_read_unlock(); } /* Frame has reached destination. Don't forward */ diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c index 1df38c03d6de..f8dbed19b07e 100644 --- a/net/mac80211/tx.c +++ b/net/mac80211/tx.c @@ -6566,7 +6566,6 @@ void __ieee80211_tx_skb_tid_band(struct ieee80211_sub_if_data *sdata, link = IEEE80211_LINK_UNSPECIFIED; } else { /* otherwise must be addressed from a link */ - rcu_read_lock(); for (link = 0; link < ARRAY_SIZE(sdata->vif.link_conf); link++) { struct ieee80211_bss_conf *link_conf; @@ -6576,7 +6575,6 @@ void __ieee80211_tx_skb_tid_band(struct ieee80211_sub_if_data *sdata, if (memcmp(link_conf->addr, hdr->addr2, ETH_ALEN) == 0) break; } - rcu_read_unlock(); if (WARN_ON_ONCE(link == ARRAY_SIZE(sdata->vif.link_conf))) link = ffs(sdata->vif.active_links) - 1; -- 2.56.0