Whamcloud - gitweb
LU-6427 osd: race between destroy and load LMV
[fs/lustre-release.git] / lustre / osd-zfs / osd_index.c
index 027b3c6..3d7aae7 100644 (file)
@@ -160,6 +160,9 @@ static struct dt_it *osd_index_it_init(const struct lu_env *env,
        int                      rc;
        ENTRY;
 
+       if (obj->oo_destroyed)
+               RETURN(ERR_PTR(-ENOENT));
+
        LASSERT(lu_object_exists(lo));
        LASSERT(obj->oo_db);
        LASSERT(osd_object_is_zap(obj->oo_db));