staging/lustre/obdclass: move obd_sysctl_init out of class_procfs_init
authorPeng Tao <bergwolf@gmail.com>
Tue, 3 Dec 2013 14:42:02 +0000 (22:42 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Dec 2013 16:56:23 +0000 (08:56 -0800)
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>
drivers/staging/lustre/lustre/obdclass/class_obd.c
drivers/staging/lustre/lustre/obdclass/linux/linux-module.c

index 4fb1ecd..7b1d1b6 100644 (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;
index d1a57eb..2efc437 100644 (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)) {