]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.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)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 8 Oct 2012 19:06:02 +0000 (15:06 -0400)
commit55fabefe3695241e6ccfa0cd4974f3fa497693dc
treeeb6bb131022cac1457e760b1b94bc7ae25e38408
parentcf193f6d2ad322cdec1872b28d761db8d22e5c00
mac80211: call drv_get_tsf() in sleepable context

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>
net/mac80211/mesh_sync.c