]> 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>
Mon, 16 Feb 2015 01:54:01 +0000 (09:54 +0800)
Signed-off-by: Yan, Zheng <zyan@redhat.com>
(cherry picked from commit b0e6e85aa08ea74cd209aad04f3f0bf991761e12)

src/mds/flock.cc

index f12fc08f9f669179ff83e69021f886b4637b0cb0..2849c1c9d3b5cdd04be4f07798e178cdca5ff579 100644 (file)
@@ -419,8 +419,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);
     }