Whamcloud - gitweb
LU-8066 obd: cleanup server sysfs symlinks handling 15/34715/14
authorJames Simmons <uja.ornl@yahoo.com>
Wed, 5 Jun 2019 16:32:38 +0000 (12:32 -0400)
committerOleg Drokin <green@whamcloud.com>
Thu, 20 Jun 2019 03:53:00 +0000 (03:53 +0000)
commit462d476d67903ae366d860f86cdf0ff9070ed167
tree1bed374407ac7679e3b0984e602510320fabd3b0
parent3e43d06810e69fdccd815bbbf5e4b50930d33ee7
LU-8066 obd: cleanup server sysfs symlinks handling

Rename class_setup_tunables() to class_add_symlinks(). Move all the
special sysfs and debugfs symlink handling into the function
class_add_symlinks(). Now that the obd_type is created using sysfs
handling we can complete the initializion if the real obd device is
registered later. For example if lod is registered first and it
creates the the "lov" obd_type. Then if the lov module is loaded
later then class_register_type() will use the "lov" obd_type created
by the lod module.

Change-Id: I754ec15a88458b170422b988d783efbe20141b87
Signed-off-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-on: https://review.whamcloud.com/34715
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Petros Koutoupis <pkoutoupis@cray.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/obd.h
lustre/include/obd_class.h
lustre/lod/lod_dev.c
lustre/lod/lproc_lod.c
lustre/lov/lov_obd.c
lustre/lov/lproc_lov.c
lustre/obdclass/genops.c
lustre/osc/lproc_osc.c
lustre/osc/osc_request.c
lustre/osp/osp_dev.c