diff options
author | Johannes Berg <johannes.berg@intel.com> | 2023-11-24 17:25:27 +0100 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2023-11-27 11:24:58 +0100 |
commit | b590b9ae1efc30e52f81d95cdb2519a4c248b965 (patch) | |
tree | 15d3e56e69e51633bb335380afbf25268ea26db2 /net/mac80211/debugfs_sta.c | |
parent | debugfs: add API to allow debugfs operations cancellation (diff) | |
download | linux-b590b9ae1efc30e52f81d95cdb2519a4c248b965.tar.xz linux-b590b9ae1efc30e52f81d95cdb2519a4c248b965.zip |
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: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions