]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
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 4fb1ecd089088fa50cd630e6e3ed39305be822c3..7b1d1b685803420d469bb89bc9d429e614849446 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 d1a57ebfda95dd79e81e5aada4cf08bc5ce54656..2efc43720ecb39ff6b6efd6320039b7f56751fc8 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)) {