rc = osp_last_used_init(env, m);
if (rc)
GOTO(out_proc, rc);
+
+ rc = obd_fid_init(m->opd_obd, NULL, LUSTRE_SEQ_DATA);
+ if (rc) {
+ CERROR("%s: fid init error: rc = %d\n",
+ m->opd_obd->obd_name, rc);
+ GOTO(out_last_used, rc);
+ }
+
/* Initialize precreation thread, it handles new
* connections as well. */
rc = osp_init_precreate(m);
if (rc)
GOTO(out_precreat, rc);
- rc = obd_fid_init(m->opd_obd, NULL, LUSTRE_SEQ_DATA);
- if (rc) {
- CERROR("%s: fid init error: rc = %d\n",
- m->opd_obd->obd_name, rc);
- GOTO(out, rc);
- }
}
/*
* Initiate connect to OST
d->opd_new_connection,
&lwi);
- if (!osp_precreate_running(d))
- break;
-
if (!d->opd_new_connection)
continue;
break;
}
+ if (!osp_precreate_running(d))
+ break;
+
+ LASSERT(d->opd_obd->u.cli.cl_seq != NULL);
if (d->opd_obd->u.cli.cl_seq->lcs_exp == NULL) {
/* Get new sequence for client first */
LASSERT(d->opd_exp != NULL);