Skip to content
Commit b590b9ae authored by Johannes Berg's avatar Johannes Berg
Browse files

wifi: cfg80211: add locked debugfs wrappers



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>
parent 8c88a474
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment