aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAli MJ Al-Nasrawy <alimjalnasrawy@gmail.com>2019-09-25 17:47:12 +0300
committerHauke Mehrtens <hauke@hauke-m.de>2019-10-12 23:51:29 +0200
commitc2635b871d1dd03a6608a9255222672decd49e09 (patch)
treee395a23095d78ba2c3a5f667cd10ecc0aaf05698 /include
parent77cfc0739d30c1282f7de24d2ec086d244e34bb7 (diff)
downloadupstream-c2635b871d1dd03a6608a9255222672decd49e09.tar.gz
upstream-c2635b871d1dd03a6608a9255222672decd49e09.tar.bz2
upstream-c2635b871d1dd03a6608a9255222672decd49e09.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>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions