• Bob Copeland's avatar
    mac80211: change workqueue back to non-freezeable · 30d3ef41
    Bob Copeland authored
    "mac80211: make workqueue freezable" made the mac80211
    workqueue freezeable to prevent us from doing any work after the
    driver went away.  This was fine before mac80211 had any suspend
    support.
    
    However, now we want to flush this workqueue in suspend().  Because
    the thread for a freezeable workqueue is stopped before the device
    class suspend() is called, flush_workqueue() will hang in the
    suspend-to-disk case.
    
    Converting it back to a non-freezeable queue will keep suspend from
    hanging.  Moreover, since we flush the workqueue under RTNL and
    userspace is stopped, there won't be any new work in the workqueue
    until after resume.  Thus we still don't have to worry about pinging
    the AP without hardware.
    Signed-off-by: default avatarBob Copeland <me@bobcopeland.com>
    Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
    30d3ef41
main.c 27.8 KB