Skip to content

Commit bb52cb7

Browse files
committed
cephfs: session tracker accounts for killing sessions
Fixes: https://tracker.ceph.com/issues/70770 Signed-off-by: Abhishek Lekshmanan <[email protected]>
1 parent 574e3c9 commit bb52cb7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/mds/SessionMap.cc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1091,9 +1091,11 @@ int Session::check_access(CInode *in, unsigned mask,
10911091

10921092
// track total and per session load
10931093
void SessionMap::hit_session(Session *session) {
1094-
uint64_t sessions = get_session_count_in_state(Session::STATE_OPEN) +
1094+
uint64_t sessions = get_session_count_in_state(Session::STATE_OPENING) +
1095+
get_session_count_in_state(Session::STATE_OPEN) +
10951096
get_session_count_in_state(Session::STATE_STALE) +
1096-
get_session_count_in_state(Session::STATE_CLOSING);
1097+
get_session_count_in_state(Session::STATE_CLOSING) +
1098+
get_session_count_in_state(Session::STATE_KILLING);
10971099
ceph_assert(sessions != 0);
10981100

10991101
double total_load = total_load_avg.hit();

0 commit comments

Comments
 (0)