diff options
author | Ali MJ Al-Nasrawy <alimjalnasrawy@gmail.com> | 2019-09-25 17:47:12 +0300 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2019-10-19 14:29:44 +0200 |
commit | b17c95bbdcad6529b846fc52a4ed88b950d40225 (patch) | |
tree | 3178fa2df171451db6f28dccf0b47e58603f2d1a /target/Makefile | |
parent | 9784a470bb490988b275d32d4bbe9ddd56c2fd71 (diff) | |
download | upstream-b17c95bbdcad6529b846fc52a4ed88b950d40225.tar.gz upstream-b17c95bbdcad6529b846fc52a4ed88b950d40225.tar.bz2 upstream-b17c95bbdcad6529b846fc52a4ed88b950d40225.zip |
trelay: fix deadlock on remove
Upon writing to "remove" file, debugfs_remove_recursive() blocks while
holding rtnl_lock. This is because debugfs' file_ops callbacks are
executed in debugfs_use_file_*() context which prevents file removal.
Fix this by only flagging the device for removal and then do the cleanup
in file_ops.release callback which is executed out of that context.
Signed-off-by: Ali MJ Al-Nasrawy <alimjalnasrawy@gmail.com>
(cherry picked from commit c2635b871d1dd03a6608a9255222672decd49e09)
Diffstat (limited to 'target/Makefile')
0 files changed, 0 insertions, 0 deletions