Whamcloud - gitweb
LU-8066 obd: migrate to ksets 48/28948/11
authorJames Simmons <uja.ornl@yahoo.com>
Mon, 9 Oct 2017 14:39:23 +0000 (10:39 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 1 Nov 2017 04:57:11 +0000 (04:57 +0000)
commitb27575d1b91d93c0f3f7f4e4a9744db37686a504
treed3090ada25b2e846c9761a4a3d275a08367ad4ff
parentd993de7b40cd9625b48e5361ae29f77bfceb207a
LU-8066 obd: migrate to ksets

Lustre's sysfs only uses kobjects but with the introduction of
ksets we can use functionality like kset_find_kobj() and uevents.
Currently lustre is layered as lustre_kobj -> class -> obd device.
This patch changes the obd devices and the top level lustre_kobj
into ksets. The class level is kept as kobjects but are bound to
the top level lustre kset so they searchable and uevents can be
created for them. Also much of the class functionality can be
replaced with what ksets can do. With obd devices now ksets we
can replace lprocfs_kset_register with lprocfs_obd_setup. Some
of the sysfs attributes were not cleaned up so added proper
removal. Reversed what the default sysfs attributes are. This
will be needed for the replacement functionality for
class_process_proc_param().

Change-Id: I3ced5f69ace6a0a9a6bc51957f20a0caecdbafc9
Signed-off-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-on: https://review.whamcloud.com/28948
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Sonia Sharma <sonia.sharma@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
16 files changed:
libcfs/autoconf/lustre-libcfs.m4
libcfs/libcfs/linux/linux-prim.c
lustre/include/lprocfs_status.h
lustre/include/obd.h
lustre/ldlm/ldlm_lockd.c
lustre/mdt/mdt_mds.c
lustre/mgs/lproc_mgs.c
lustre/mgs/mgs_handler.c
lustre/mgs/mgs_internal.h
lustre/obdclass/genops.c
lustre/obdclass/linux/linux-module.c
lustre/obdclass/linux/linux-sysctl.c
lustre/obdclass/lprocfs_status.c
lustre/obdclass/lprocfs_status_server.c
lustre/ost/ost_handler.c
lustre/ptlrpc/lproc_ptlrpc.c