Ali MJ Al-Nasrawy c2635b871d 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>
2019-10-12 23:51:29 +02:00
..
2019-07-17 12:16:29 +02:00
2019-10-12 23:51:29 +02:00
2019-10-12 23:43:08 +02:00
2019-09-21 15:04:18 +02:00
2019-09-01 00:34:30 +02:00