Whamcloud - gitweb
LU-4076 fld: add local fldb to each target
[fs/lustre-release.git] / lustre / osp / osp_dev.c
index 1094a65..0a4938c 100644 (file)
@@ -905,15 +905,6 @@ static int osp_obd_connect(const struct lu_env *env, struct obd_export **exp,
        }
 
        ptlrpc_pinger_add_import(imp);
-
-       if (osp->opd_connect_mdt && data->ocd_index == 0) {
-               /* set seq controller export for MDC0 if exists */
-               struct seq_server_site *ss;
-
-               ss = lu_site2seq(osp2lu_dev(osp)->ld_site);
-               ss->ss_control_exp = class_export_get(*exp);
-               ss->ss_server_fld->lsf_control_exp = *exp;
-       }
 out:
        RETURN(rc);
 }
@@ -1197,8 +1188,11 @@ static int __init osp_mod_init(void)
 
        lprocfs_osp_init_vars(&lvars);
 
-       rc = class_register_type(&osp_obd_device_ops, NULL, lvars.module_vars,
-                                LUSTRE_OSP_NAME, &osp_device_type);
+       rc = class_register_type(&osp_obd_device_ops, NULL, NULL,
+#ifndef HAVE_ONLY_PROCFS_SEQ
+                               lvars.module_vars,
+#endif
+                               LUSTRE_OSP_NAME, &osp_device_type);
 
        /* create "osc" entry in procfs for compatibility purposes */
        if (rc != 0) {
@@ -1208,8 +1202,11 @@ static int __init osp_mod_init(void)
 
        lprocfs_lwp_init_vars(&lvars);
 
-       rc = class_register_type(&lwp_obd_device_ops, NULL, lvars.module_vars,
-                                LUSTRE_LWP_NAME, &lwp_device_type);
+       rc = class_register_type(&lwp_obd_device_ops, NULL, NULL,
+#ifndef HAVE_ONLY_PROCFS_SEQ
+                               lvars.module_vars,
+#endif
+                               LUSTRE_LWP_NAME, &lwp_device_type);
        if (rc != 0) {
                class_unregister_type(LUSTRE_OSP_NAME);
                lu_kmem_fini(osp_caches);