• Johannes Berg's avatar
    wifi: cfg80211: add locked debugfs wrappers · b590b9ae
    Johannes Berg authored
    Add wrappers for debugfs files that should be called with
    the wiphy mutex held, while the file is also to be removed
    under the wiphy mutex. This could otherwise deadlock when
    a file is trying to acquire the wiphy mutex while the code
    removing it holds the mutex but waits for the removal.
    
    This actually works by pushing the execution of the read
    or write handler to a wiphy work that can be cancelled
    using the debugfs cancellation API.
    Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
    b590b9ae
cfg80211.h 328 KB