4bb073c0e3
If the RTNL is held when we invoke flush_scheduled_work() we could deadlock. One such case is linkwatch, it is a work struct which tries to grab the RTNL semaphore. The most common case are net driver ->stop() methods. The simplest conversion is to instead use cancel_{delayed_}work_sync() explicitly on the various work struct the driver uses. This is an OK transformation because these work structs are doing things like resetting the chip, restarting link negotiation, and so forth. And if we're bringing down the device, we're about to turn the chip off and reset it anways. So if we cancel a pending work event, that's fine here. Some drivers were working around this deadlock by using a msleep() polling loop of some sort, and those cases are converted to instead use cancel_{delayed_}work_sync() as well. Signed-off-by: David S. Miller <davem@davemloft.net> |
||
---|---|---|
.. | ||
hostap.h | ||
hostap_80211.h | ||
hostap_80211_rx.c | ||
hostap_80211_tx.c | ||
hostap_ap.c | ||
hostap_ap.h | ||
hostap_common.h | ||
hostap_config.h | ||
hostap_cs.c | ||
hostap_download.c | ||
hostap_hw.c | ||
hostap_info.c | ||
hostap_ioctl.c | ||
hostap_main.c | ||
hostap_pci.c | ||
hostap_plx.c | ||
hostap_proc.c | ||
hostap_wlan.h | ||
Kconfig | ||
Makefile |