Re: [ath9k-devel] [PATCH] mac80211: Use RCU protection in ieee80211_get_tx_rates()

2013-06-13 Thread Calvin Owens
On Wednesday 06/12 at 11:47 +0200, Felix Fietkau wrote: On 2013-06-12 10:00 AM, Calvin Owens wrote: Copying the rate table should be done in an RCU read-side critical section. I think this approach is wrong. The sta entry is also under RCU protection (no locking for read access in that part

[ath9k-devel] [PATCH] mac80211: Use RCU protection in ieee80211_get_tx_rates()

2013-06-12 Thread Calvin Owens
Copying the rate table should be done in an RCU read-side critical section. Signed-off-by: Calvin Owens jcalvinow...@gmail.com --- net/mac80211/rate.c | 4 1 file changed, 4 insertions(+) diff --git a/net/mac80211/rate.c b/net/mac80211/rate.c index d3f414f..090d9b0 100644 ---

Re: [ath9k-devel] [PATCH] mac80211: Use RCU protection in ieee80211_get_tx_rates()

2013-06-12 Thread Felix Fietkau
On 2013-06-12 10:00 AM, Calvin Owens wrote: Copying the rate table should be done in an RCU read-side critical section. I think this approach is wrong. The sta entry is also under RCU protection (no locking for read access in that part of the code. In a normal driver tx path, no extra