]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mac80211: call drv_get_tsf() in sleepable context
authorThomas Pedersen <thomas@cozybit.com>
Sat, 6 Oct 2012 00:57:39 +0000 (17:57 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 28 Oct 2012 17:56:18 +0000 (10:56 -0700)
commit3ae3dacc90a358dc113b565ddb1f4560d68109b1
tree2ab979109a41a0c174d27ffcb2d3d6de9b650549
parent060672c399c00f09d8e238756c1853a4c870b48a
mac80211: call drv_get_tsf() in sleepable context

commit 55fabefe3695241e6ccfa0cd4974f3fa497693dc upstream.

The call to drv_get/set_tsf() was put on the workqueue to perform tsf
adjustments since that function might sleep. However it ended up inside
a spinlock, whose critical section must be atomic. Do tsf adjustment
outside the spinlock instead, and get rid of a warning.

Signed-off-by: Thomas Pedersen <thomas@cozybit.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/mac80211/mesh_sync.c