X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fmdd%2Fmdd_dir.c;h=e3a80bb966f1e723f6b93c515b8c3e3276105273;hp=f074f2391b0fc6cadef6ab82f8195df05abb2b0d;hb=a38c587cbf3be2e9870941601f34e355e6dced2f;hpb=06408a4ef381121fa58783026a0cf0a6b0fa479c diff --git a/lustre/mdd/mdd_dir.c b/lustre/mdd/mdd_dir.c index f074f23..e3a80bb 100644 --- a/lustre/mdd/mdd_dir.c +++ b/lustre/mdd/mdd_dir.c @@ -234,6 +234,9 @@ static inline int mdd_parent_fid(const struct lu_env *env, if (rc != 0) GOTO(lookup, rc); + /* the obj is not locked, don't cache attributes */ + mdd_invalidate(env, &obj->mod_obj); + LASSERT(ldata.ld_leh != NULL); /* Directory should only have 1 parent */ if (ldata.ld_leh->leh_reccount > 1)