X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fllite%2Fnamei.c;h=cbe3aa6e976f623c4f9a31fedb6c93d0e6466d0e;hb=72c9a6e5fb6e11fca1b1438ac18f58ff7849ed7d;hp=3409c16bd897a82b1555fbb8d5132cd28a64c5cb;hpb=fc2df80e96dc5db9f3fb710893ccf6f442664471;p=fs%2Flustre-release.git diff --git a/lustre/llite/namei.c b/lustre/llite/namei.c index 3409c16..cbe3aa6 100644 --- a/lustre/llite/namei.c +++ b/lustre/llite/namei.c @@ -1156,7 +1156,9 @@ static int ll_atomic_open(struct inode *dir, struct dentry *dentry, * we only need to request open lock if it was requested * for every open */ - if (ll_i2sbi(dir)->ll_oc_thrsh_count == 1) + if (ll_i2sbi(dir)->ll_oc_thrsh_count == 1 && + exp_connect_flags2(ll_i2mdexp(dir)) & + OBD_CONNECT2_ATOMIC_OPEN_LOCK) it->it_flags |= MDS_OPEN_LOCK; /* Dentry added to dcache tree in ll_lookup_it */