X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fosp%2Fosp_dev.c;h=af6ef02adb1ddc25b996d0c79735cc731863272a;hp=f8c6fef51aa4d81830bc49db212c5a0e618738dd;hb=707642fa4062a273ef5352b7cc44e43e18681dc0;hpb=7903fbc92af96ff5d5780fb89911dc8557f13ac8 diff --git a/lustre/osp/osp_dev.c b/lustre/osp/osp_dev.c index f8c6fef..af6ef02 100644 --- a/lustre/osp/osp_dev.c +++ b/lustre/osp/osp_dev.c @@ -695,6 +695,14 @@ static int osp_init0(const struct lu_env *env, struct osp_device *m, 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); @@ -709,12 +717,6 @@ static int osp_init0(const struct lu_env *env, struct osp_device *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