X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fllite%2Fdcache.c;h=02a2f1f76a1ac0f9c16f8c176b6cd133a1abb00e;hp=13c4d989a8724438694d7916e03fb6059304526c;hb=19105bbaa47251c8ae3c2cfd0cb5798d6a2cc66c;hpb=e3e78d1a81d006464c5c488a30f185933b3b8aab diff --git a/lustre/llite/dcache.c b/lustre/llite/dcache.c index 13c4d989..02a2f1f 100644 --- a/lustre/llite/dcache.c +++ b/lustre/llite/dcache.c @@ -411,7 +411,7 @@ int ll_revalidate_it(struct dentry *de, int lookup_flags, if (de->d_flags & DCACHE_LUSTRE_INVALID) RETURN(0); - rc = ll_have_md_lock(parent, MDS_INODELOCK_UPDATE); + rc = ll_have_md_lock(parent, MDS_INODELOCK_UPDATE, LCK_MINMODE); GOTO(out_sa, rc); } @@ -471,7 +471,7 @@ int ll_revalidate_it(struct dentry *de, int lookup_flags, och_usecount = &lli->lli_open_fd_read_count; } /* Check for the proper lock. */ - if (!ll_have_md_lock(inode, MDS_INODELOCK_LOOKUP)) + if (!ll_have_md_lock(inode, MDS_INODELOCK_LOOKUP, LCK_MINMODE)) goto do_lock; cfs_down(&lli->lli_och_sem); if (*och_p) { /* Everything is open already, do nothing */