Whamcloud - gitweb
LU-9791 obd: always call lprocfs_obd_setup 47/28747/3
authorJames Simmons <uja.ornl@yahoo.com>
Mon, 28 Aug 2017 15:31:01 +0000 (11:31 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Sun, 10 Sep 2017 04:54:55 +0000 (04:54 +0000)
commit9da376b7b3526c1c5bf4c5b26fc6ed692e13f9b7
tree0f9d93f4744c205c91d26aa2476eeb4b7a9a4f19
parente1679d0348856bc68589493e7ea86f1aaf21e1af
LU-9791 obd: always call lprocfs_obd_setup

In the case of lustre running on a single nodes the function
lprocfs_obd_setup() was not being called for lov/osc. This
was preventing sysfs from being registered. So always call
lprocfs_obd_setup(). Update lprocfs_obd_setup() to see if
obd->obd_proc_entry has already been set and return right
away.

Change-Id: Idbd99ea6a2e59eeee3991048d54c532df7d849ad
Signed-off-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-on: https://review.whamcloud.com/28747
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/lov/lov_obd.c
lustre/obdclass/lprocfs_status.c
lustre/osc/osc_request.c