]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds/flock: don't import ceph_lock_state_t::waiting_locks
authorYan, Zheng <zyan@redhat.com>
Sat, 3 Jun 2017 03:42:12 +0000 (11:42 +0800)
committerPatrick Donnelly <pdonnell@redhat.com>
Mon, 10 Jul 2017 20:57:53 +0000 (13:57 -0700)
Item in waiting_locks is associated with flock mds request in
exporter mds. If client re-sends the flock mds request to the
importer, the importer starts a new MDRequest. The new one's
'flock_was_waiting' is false.

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
(cherry picked from commit 8d777c4855b0c8e58a8d6966371698b8b7721a42)

src/mds/flock.h

index 2cf9f0a3927b1350bb583abeceab90cffeaf7cd4..cd3c0a9ea0d4b4002fd2d1a5afef7beba8777592 100644 (file)
@@ -252,21 +252,11 @@ private:
 public:
   void encode(bufferlist& bl) const {
     ::encode(held_locks, bl);
-    ::encode(waiting_locks, bl);
     ::encode(client_held_lock_counts, bl);
-    ::encode(client_waiting_lock_counts, bl);
   }
   void decode(bufferlist::iterator& bl) {
     ::decode(held_locks, bl);
-    ::decode(waiting_locks, bl);
     ::decode(client_held_lock_counts, bl);
-    ::decode(client_waiting_lock_counts, bl);
-  }
-  void clear() {
-    held_locks.clear();
-    waiting_locks.clear();
-    client_held_lock_counts.clear();
-    client_waiting_lock_counts.clear();
   }
   bool empty() const {
     return held_locks.empty() && waiting_locks.empty() &&