Whamcloud - gitweb
LU-11986 lnet: properly cleanup lnet debugfs files 69/34669/5
authorJames Simmons <uja.ornl@yahoo.com>
Mon, 15 Apr 2019 23:16:27 +0000 (19:16 -0400)
committerOleg Drokin <green@whamcloud.com>
Mon, 22 Apr 2019 21:56:28 +0000 (21:56 +0000)
commit8cb7ccf54e2d34010bea9a71fe0eff708545ab78
treeec820d9f7f15d13def276a4f5c015e21cad3b444
parentc6f3d533542b9462b5b8df95183d80321d4d9c34
LU-11986 lnet: properly cleanup lnet debugfs files

The function lnet_router_debugfs_remove() is suppose to cleanup
the lnet specific debugfs files but that is not happening at all.
Change lnet_remove_debugfs() from doing the final debugfs lnet
and libcfs cleanup to doing specific debugfs file removal. We
can make libcfs module unloading to directly finish the entire
libcfs and debugfs tree removal instead. With this change we can
make lnet_router_debugfs_fini() call lnet_remove_debugfs().

Change-Id: I9e314e7efde806073b621166ff2e1b344e550875
Signed-off-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-on: https://review.whamcloud.com/34669
Reviewed-by: Sonia Sharma <sharmaso@whamcloud.com>
Reviewed-by: Amir Shehata <ashehata@whamcloud.com>
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
libcfs/include/libcfs/libcfs.h
libcfs/libcfs/module.c
lnet/lnet/api-ni.c
lnet/lnet/router_proc.c