From: James Simmons Date: Mon, 9 Oct 2017 14:39:23 +0000 (-0400) Subject: LU-8066 obd: migrate to ksets X-Git-Tag: 2.10.55~22 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=b27575d1b91d93c0f3f7f4e4a9744db37686a504;hp=b27575d1b91d93c0f3f7f4e4a9744db37686a504;p=fs%2Flustre-release.git 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 Reviewed-on: https://review.whamcloud.com/28948 Reviewed-by: John L. Hammond Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Sonia Sharma Reviewed-by: Oleg Drokin ---