Whamcloud - gitweb
LU-8066 llite: don't use class_setup_tunables() 92/34292/8
authorJames Simmons <uja.ornl@yahoo.com>
Wed, 13 Mar 2019 14:03:28 +0000 (10:03 -0400)
committerOleg Drokin <green@whamcloud.com>
Mon, 1 Apr 2019 07:23:54 +0000 (07:23 +0000)
commitc2774e1984592ee2a7c8d308f44e3a6034a6b18d
treecd3635c26c77007a618a093c632d21380c99c794
parent70f932c7bfc590c03309bd2a83db20dd6ef5a8d4
LU-8066 llite: don't use class_setup_tunables()

llite is very different from the other types of lustre devices.
Since this is the case llite should register independently. Doing
this allows us to cleanup the debugfs registering in the release
function of struct kobj_type. Also fix the improper handling to
linking it to the lustre_kset. Use kset_get() and kset_put() to
properly keep the reference count for the lustre_kset. This
lastly provides flexibility for making changes to
class_setup_tunables().

Change-Id: I676159caa7885485fdd57c908123214f68514227
Signed-off-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-on: https://review.whamcloud.com/34292
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Ben Evans <bevans@cray.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/llite/lproc_llite.c