staging/lustre/llite: missing last bit in ll_have_md_lock
Missing the last bit during INODELOCK check in ll_have_md_lock. Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-3385 Lustre-change: http://review.whamcloud.com/6438 Signed-off-by: wang di <di.wang@intel.com> Reviewed-by: Oleg Drokin <oleg.drokin@intel.com> Reviewed-by: Andreas Dilger <andreas.dilger@intel.com> Signed-off-by: Peng Tao <tao.peng@emc.com> Signed-off-by: Andreas Dilger <andreas.dilger@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
4f37bc0480
commit
1253b2e850
@ -2448,7 +2448,7 @@ int ll_have_md_lock(struct inode *inode, __u64 *bits, ldlm_mode_t l_req_mode)
|
||||
ldlm_lockname[mode]);
|
||||
|
||||
flags = LDLM_FL_BLOCK_GRANTED | LDLM_FL_CBPENDING | LDLM_FL_TEST_LOCK;
|
||||
for (i = 0; i < MDS_INODELOCK_MAXSHIFT && *bits != 0; i++) {
|
||||
for (i = 0; i <= MDS_INODELOCK_MAXSHIFT && *bits != 0; i++) {
|
||||
policy.l_inodebits.bits = *bits & (1 << i);
|
||||
if (policy.l_inodebits.bits == 0)
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user