ath9k: simplify tx locking
authorFelix Fietkau <nbd@openwrt.org>
Wed, 14 Dec 2011 21:08:07 +0000 (22:08 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 15 Dec 2011 19:46:36 +0000 (14:46 -0500)
commit3ad2952998b08442044690fa9b4ec38c6c3fc4a9
tree3853bcba02617a5077f7f68bdd5e914958965eb0
parent6ee8284edb9be5cd567ff3f772de3bf55c73fc7a
ath9k: simplify tx locking

Instead of releasing and taking back the lock over and over again in the
tx path, hold the lock a bit longer, requiring much fewer lock/unlock pairs.
This makes locking much easier to review and should not have any noticeable
performance/latency impact.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/xmit.c