]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: fix neighbor lock check
authorYan, Zheng <zyan@redhat.com>
Wed, 15 Oct 2014 04:03:46 +0000 (12:03 +0800)
committerYan, Zheng <zyan@redhat.com>
Wed, 15 Oct 2014 04:05:01 +0000 (12:05 +0800)
Signed-off-by: Yan, Zheng <zyan@redhat.com>
src/mds/flock.cc

index 45659804226d488fb23cc4e353e81edc11e900c7..9455a89404018eeb38fffeef38a4e20b3c8663ca 100644 (file)
@@ -418,8 +418,7 @@ bool ceph_lock_state_t::get_overlapping_locks(ceph_filelock& lock,
     if (share_space(iter, lock)) {
       overlaps.push_front(iter);
     } else if (self_neighbors &&
-               (neighbor_check_lock.client == iter->second.client) &&
-               (neighbor_check_lock.pid == iter->second.pid) &&
+              ceph_filelock_owner_equal(neighbor_check_lock, iter->second) &&
                share_space(iter, neighbor_check_lock)) {
       self_neighbors->push_front(iter);
     }