]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf5855e058362b62022d71d446d2b9dc82750bfdf
tree9aa416539b86bd11f54df822784e4e8d50fb8dc3
parent48649cede23bb18523a2625da18d3131969d3e04
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