OSDN Git Service

mac80211_hwsim: add workqueue to wait for deferred radio deletion on mod unload
authorBenjamin Beichler <benjamin.beichler@uni-rostock.de>
Wed, 10 Jan 2018 16:42:51 +0000 (17:42 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 15 Jan 2018 08:18:27 +0000 (09:18 +0100)
commitb71d856ab536f25eb97c011a351ecddf5518de41
tree9aa416539b86bd11f54df822784e4e8d50fb8dc3
parent7a94b8c2eee7083ddccd0515830f8c81a8e44b1a
mac80211_hwsim: add workqueue to wait for deferred radio deletion on mod unload

When closing multiple wmediumd instances with many radios and try to
unload the  mac80211_hwsim module, it may happen that the work items live
longer than the module. To wait especially for this deletion work items,
add a work queue, otherwise flush_scheduled_work would be necessary.

Signed-off-by: Benjamin Beichler <benjamin.beichler@uni-rostock.de>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/mac80211_hwsim.c