Whamcloud - gitweb
LU-4413 osp: move seq allocation out of osp_import_event
[fs/lustre-release.git] / lustre / osp / osp_precreate.c
index 6b1db95..22a1060 100644 (file)
@@ -916,6 +916,16 @@ static int osp_precreate_thread(void *_arg)
                if (d->opd_obd->u.cli.cl_seq->lcs_exp == NULL)
                        continue;
 
+               /* Init fid for osp_precreate if necessary */
+               rc = osp_init_pre_fid(d);
+               if (rc != 0) {
+                       class_export_put(d->opd_exp);
+                       d->opd_obd->u.cli.cl_seq->lcs_exp = NULL;
+                       CERROR("%s: init pre fid error: rc = %d\n",
+                              d->opd_obd->obd_name, rc);
+                       continue;
+               }
+
                osp_statfs_update(d);
 
                /*