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-12 23:51:29 +0200 |
commit | c2635b871d1dd03a6608a9255222672decd49e09 (patch) | |
tree | e395a23095d78ba2c3a5f667cd10ecc0aaf05698 /package/boot/uboot-omap/patches | |
parent | 77cfc0739d30c1282f7de24d2ec086d244e34bb7 (diff) | |
download | upstream-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 'package/boot/uboot-omap/patches')
0 files changed, 0 insertions, 0 deletions