Whamcloud - gitweb
LU-6207 osd: add osd_ost_fini in osd_obj_map_init
[fs/lustre-release.git] / lustre / osd-ldiskfs / osd_compat.c
index da016a3..bf317d0 100644 (file)
@@ -477,6 +477,8 @@ int osd_obj_map_init(const struct lu_env *env, struct osd_device *dev)
 
        /* prepare structures for MDS */
        rc = osd_mdt_init(env, dev);
+       if (rc)
+               osd_ost_fini(dev);
 
         RETURN(rc);
 }