mac80211: cancel restart_work explicitly instead of depending on flush_scheduled_work()
authorTejun Heo <tj@kernel.org>
Fri, 15 Oct 2010 15:35:28 +0000 (17:35 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 25 Oct 2010 18:43:12 +0000 (14:43 -0400)
commit99b88a0ecbdbc6df03527292571b2b442965814a
tree71a5c8b9e0dcb6e6a07c182e05b97bff8095a348
parent229aebb873e29726b91e076161649cf45154b0bf
mac80211: cancel restart_work explicitly instead of depending on flush_scheduled_work()

iee80211_hw->restart_work is the only work which uses the system
workqueue.  Instead of calling flush_scheduled_work() during
iee80211_exit(), cancel the work during unregistration.

This is to prepare for the deprecation and removal of
flush_scheduled_work().

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/main.c