mac80211: rework locking for txq scheduling / airtime fairness
authorFelix Fietkau <nbd@nbd.name>
Fri, 15 Mar 2019 10:03:35 +0000 (11:03 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 29 Mar 2019 10:27:44 +0000 (11:27 +0100)
commit5b989c18dab2e82bac8a5564a174794bf84b20e6
treedffe8a8325b9bcf306b7b5f77b09dc4a4f6cb606
parentd6db02a88a4aaa1cd7105137c67ddec7f3bdbc05
mac80211: rework locking for txq scheduling / airtime fairness

Holding the lock around the entire duration of tx scheduling can create
some nasty lock contention, especially when processing airtime information
from the tx status or the rx path.
Improve locking by only holding the active_txq_lock for lookups / scheduling
list modifications.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
Acked-by: Toke Høiland-Jørgensen <toke@redhat.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/mac80211.h
net/mac80211/tx.c