1
0
Fork 0

staging/lustre/obdclass: move obd_sysctl_init out of class_procfs_init

It is not strictly related to procfs. Besides, we already call obd_sysctl_clean
outside of class_procfs_clean.

Signed-off-by: Peng Tao <bergwolf@gmail.com>
Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
hifive-unleashed-5.1
Peng Tao 2013-12-03 22:42:02 +08:00 committed by Greg Kroah-Hartman
parent 0396ec9e93
commit c7c5da015a
2 changed files with 3 additions and 1 deletions

View File

@ -564,6 +564,9 @@ static int __init init_obdclass(void)
err = obd_init_caches();
if (err)
return err;
obd_sysctl_init();
err = class_procfs_init();
if (err)
return err;

View File

@ -380,7 +380,6 @@ int class_procfs_init(void)
{
int rc = 0;
obd_sysctl_init();
proc_lustre_root = lprocfs_register("fs/lustre", NULL,
lprocfs_base, NULL);
if (IS_ERR(proc_lustre_root)) {