summaryrefslogtreecommitdiffstats
path: root/src/mds/SessionMap.h
diff options
context:
space:
mode:
authorJohn Spray <jspray@redhat.com>2016-10-19 12:19:48 +0200
committerGitHub <noreply@github.com>2016-10-19 12:19:48 +0200
commitc2d0235ce5662022869fbdbbe49de9e22f2b4da8 (patch)
tree0e7caf8b35c84ea7539f1a0ecb2ff1fef9b60e44 /src/mds/SessionMap.h
parentMerge pull request #11551 from wjwithagen/wip-wjw-freebsd-lltng (diff)
parentmds: fix false "failing to respond to cache pressure" warning (diff)
downloadceph-c2d0235ce5662022869fbdbbe49de9e22f2b4da8.tar.xz
ceph-c2d0235ce5662022869fbdbbe49de9e22f2b4da8.zip
Merge pull request #11373 from ukernel/wip-mds-recall-warning
mds: fix false "failing to respond to cache pressure" warning Reviewed-by: Greg Farnum <gfarnum@redhat.com> Reviewed-by: John Spray <john.spray@redhat.com>
Diffstat (limited to 'src/mds/SessionMap.h')
-rw-r--r--src/mds/SessionMap.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mds/SessionMap.h b/src/mds/SessionMap.h
index 716d29b9054..d73bd1c919d 100644
--- a/src/mds/SessionMap.h
+++ b/src/mds/SessionMap.h
@@ -129,6 +129,7 @@ public:
// Ephemeral state for tracking progress of capability recalls
utime_t recalled_at; // When was I asked to SESSION_RECALL?
+ utime_t last_recall_sent;
uint32_t recall_count; // How many caps was I asked to SESSION_RECALL?
uint32_t recall_release_count; // How many caps have I actually revoked?
@@ -148,6 +149,7 @@ public:
void notify_cap_release(size_t n_caps);
void notify_recall_sent(int const new_limit);
+ void clear_recalled_at();
inodeno_t next_ino() {
if (info.prealloc_inos.empty())
@@ -315,7 +317,7 @@ public:
Session() :
state(STATE_CLOSED), state_seq(0), importing_count(0),
- recalled_at(), recall_count(0), recall_release_count(0),
+ recall_count(0), recall_release_count(0),
auth_caps(g_ceph_context),
connection(NULL), item_session_list(this),
requests(0), // member_offset passed to front() manually