]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Merge PR #36257 into master
authorPatrick Donnelly <pdonnell@redhat.com>
Fri, 31 Jul 2020 21:16:59 +0000 (14:16 -0700)
committerPatrick Donnelly <pdonnell@redhat.com>
Fri, 31 Jul 2020 21:16:59 +0000 (14:16 -0700)
* refs/pull/36257/head:
client: move client_lock to _unmount()
client: add timer_lock support

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
1  2 
src/client/Client.cc
src/client/Client.h

Simple merge
index fa53b287d6ae1142695acedfdc732363af2b1695,1f6cdb1dee5d50d5040766c7f236012d79905cd6..f1057e8465d32229aa88f840019d79a473a5445b
@@@ -733,18 -732,11 +733,21 @@@ public
    void flush_cap_releases();
    void tick();
  
 +  void cap_hit() {
 +    ++cap_hits;
 +  }
 +  void cap_miss() {
 +    ++cap_misses;
 +  }
 +  std::pair<uint64_t, uint64_t> get_cap_hit_rates() {
 +    return std::make_pair(cap_hits, cap_misses);
 +  }
 +
    xlist<Inode*> &get_dirty_list() { return dirty_list; }
  
+   /* timer_lock for 'timer' and 'tick_event' */
+   ceph::mutex timer_lock = ceph::make_mutex("Client::timer_lock");
+   Context *tick_event = nullptr;
    SafeTimer timer;
  
    std::unique_ptr<PerfCounters> logger;