]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: agg-tx: avoid sending DelBA with sta->lock held
authorJohannes Berg <johannes.berg@intel.com>
Thu, 12 Mar 2015 18:28:31 +0000 (19:28 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 30 Mar 2015 07:46:52 +0000 (09:46 +0200)
commitc93460459376c3cdf173952ce8f0143086b683ed
treec8ade2c50b86dc7b802b8d74a7064543721dd027
parent47c2b385f2f9bbc3c261ed0dafb0baf61a87ade4
mac80211: agg-tx: avoid sending DelBA with sta->lock held

The rate control locking caused a potential deadlock here due to the
locks being acquired in different orders, so that change cannot yet
be applied. However, there's no fundamental reason for this code to
hold the sta->lock while transmitting frames.

Clearly it's better not to hold the lock for longer periods of time,
which can happen here since we call all the way down to the driver.
Change the code a bit to not hold it while doing that.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/agg-tx.c