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>
        err = obd_init_caches();
        if (err)
                return err;
+
+       obd_sysctl_init();
+
        err = class_procfs_init();
        if (err)
                return err;
 
 {
        int rc = 0;
 
-       obd_sysctl_init();
        proc_lustre_root = lprocfs_register("fs/lustre", NULL,
                                            lprocfs_base, NULL);
        if (IS_ERR(proc_lustre_root)) {