X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fosp%2Fosp_dev.c;h=f8c6fef51aa4d81830bc49db212c5a0e618738dd;hb=757c8740038b257c6cb8c0f57dab91a3280e6ef9;hp=fce9c947ab9662d73df3e06865ac5a3a6cafae15;hpb=400324a4307934956cad0e9ace95bc500e903463;p=fs%2Flustre-release.git diff --git a/lustre/osp/osp_dev.c b/lustre/osp/osp_dev.c index fce9c94..f8c6fef 100644 --- a/lustre/osp/osp_dev.c +++ b/lustre/osp/osp_dev.c @@ -351,9 +351,6 @@ static int osp_shutdown(const struct lu_env *env, struct osp_device *d) ENTRY; LASSERT(env); - /* release last_used file */ - if (!d->opd_connect_mdt) - osp_last_used_fini(env, d); rc = osp_disconnect(d); @@ -363,6 +360,9 @@ static int osp_shutdown(const struct lu_env *env, struct osp_device *d) /* stop sync thread */ osp_sync_fini(d); + + /* release last_used file */ + osp_last_used_fini(env, d); } obd_fid_fini(d->opd_obd);