X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Flclient%2Flcommon_cl.c;h=dd04f9bff14a6a3c8f684388d14da21f2b179afb;hp=87d2b91c1d06863dbaeb26c586b4c3b897af7a4e;hb=e3fa506969073cdcbca471c276f09d60fea8fe5e;hpb=90172d84eae60e5d8b5a0f25ceb78a5cab178993 diff --git a/lustre/lclient/lcommon_cl.c b/lustre/lclient/lcommon_cl.c index 87d2b91..dd04f9b 100644 --- a/lustre/lclient/lcommon_cl.c +++ b/lustre/lclient/lcommon_cl.c @@ -624,7 +624,7 @@ int ccc_lock_fits_into(const struct lu_env *env, * doesn't enqueue CLM_WRITE sub-locks. */ if (cio->cui_glimpse) - result = descr->cld_mode == CLM_PHANTOM; + result = descr->cld_mode != CLM_WRITE; /* * Also, don't match incomplete write locks for read, otherwise read