Lines Matching refs:session
54 struct ceph_mds_session *session; member
1149 mds = cap->session->s_mds; in __choose_mds()
1378 struct ceph_mds_session *session) in __open_session() argument
1382 int mds = session->s_mds; in __open_session()
1388 session->s_state = CEPH_MDS_SESSION_OPENING; in __open_session()
1389 session->s_renew_requested = jiffies; in __open_session()
1392 msg = create_session_open_msg(mdsc, session->s_seq); in __open_session()
1395 ceph_con_send(&session->s_con, msg); in __open_session()
1407 struct ceph_mds_session *session; in __open_export_target_session() local
1410 session = __ceph_lookup_mds_session(mdsc, target); in __open_export_target_session()
1411 if (!session) { in __open_export_target_session()
1412 session = register_session(mdsc, target); in __open_export_target_session()
1413 if (IS_ERR(session)) in __open_export_target_session()
1414 return session; in __open_export_target_session()
1416 if (session->s_state == CEPH_MDS_SESSION_NEW || in __open_export_target_session()
1417 session->s_state == CEPH_MDS_SESSION_CLOSING) { in __open_export_target_session()
1418 ret = __open_session(mdsc, session); in __open_export_target_session()
1423 return session; in __open_export_target_session()
1429 struct ceph_mds_session *session; in ceph_mdsc_open_export_target_session() local
1434 session = __open_export_target_session(mdsc, target); in ceph_mdsc_open_export_target_session()
1437 return session; in ceph_mdsc_open_export_target_session()
1441 struct ceph_mds_session *session) in __open_export_target_sessions() argument
1445 int i, mds = session->s_mds; in __open_export_target_sessions()
1452 session->s_mds, mi->num_export_targets); in __open_export_target_sessions()
1461 struct ceph_mds_session *session) in ceph_mdsc_open_export_target_sessions() argument
1464 __open_export_target_sessions(mdsc, session); in ceph_mdsc_open_export_target_sessions()
1472 static void detach_cap_releases(struct ceph_mds_session *session, in detach_cap_releases() argument
1475 lockdep_assert_held(&session->s_cap_lock); in detach_cap_releases()
1477 list_splice_init(&session->s_cap_releases, target); in detach_cap_releases()
1478 session->s_num_cap_releases = 0; in detach_cap_releases()
1479 dout("dispose_cap_releases mds%d\n", session->s_mds); in detach_cap_releases()
1495 struct ceph_mds_session *session) in cleanup_session_requests() argument
1500 dout("cleanup_session_requests mds%d\n", session->s_mds); in cleanup_session_requests()
1502 while (!list_empty(&session->s_unsafe)) { in cleanup_session_requests()
1503 req = list_first_entry(&session->s_unsafe, in cleanup_session_requests()
1519 req->r_session->s_mds == session->s_mds) in cleanup_session_requests()
1531 int ceph_iterate_session_caps(struct ceph_mds_session *session, in ceph_iterate_session_caps() argument
1541 dout("iterate_session_caps %p mds%d\n", session, session->s_mds); in ceph_iterate_session_caps()
1542 spin_lock(&session->s_cap_lock); in ceph_iterate_session_caps()
1543 p = session->s_caps.next; in ceph_iterate_session_caps()
1544 while (p != &session->s_caps) { in ceph_iterate_session_caps()
1551 session->s_cap_iterator = cap; in ceph_iterate_session_caps()
1552 spin_unlock(&session->s_cap_lock); in ceph_iterate_session_caps()
1559 ceph_put_cap(session->s_mdsc, old_cap); in ceph_iterate_session_caps()
1566 spin_lock(&session->s_cap_lock); in ceph_iterate_session_caps()
1571 BUG_ON(cap->session != session); in ceph_iterate_session_caps()
1572 cap->session = NULL; in ceph_iterate_session_caps()
1574 session->s_nr_caps--; in ceph_iterate_session_caps()
1575 atomic64_dec(&session->s_mdsc->metric.total_caps); in ceph_iterate_session_caps()
1577 __ceph_queue_cap_release(session, cap); in ceph_iterate_session_caps()
1586 session->s_cap_iterator = NULL; in ceph_iterate_session_caps()
1587 spin_unlock(&session->s_cap_lock); in ceph_iterate_session_caps()
1591 ceph_put_cap(session->s_mdsc, old_cap); in ceph_iterate_session_caps()
1726 static void remove_session_caps(struct ceph_mds_session *session) in remove_session_caps() argument
1728 struct ceph_fs_client *fsc = session->s_mdsc->fsc; in remove_session_caps()
1732 dout("remove_session_caps on %p\n", session); in remove_session_caps()
1733 ceph_iterate_session_caps(session, remove_session_caps_cb, fsc); in remove_session_caps()
1737 spin_lock(&session->s_cap_lock); in remove_session_caps()
1738 if (session->s_nr_caps > 0) { in remove_session_caps()
1749 while (!list_empty(&session->s_caps)) { in remove_session_caps()
1750 cap = list_entry(session->s_caps.next, in remove_session_caps()
1756 spin_unlock(&session->s_cap_lock); in remove_session_caps()
1761 spin_lock(&session->s_cap_lock); in remove_session_caps()
1766 detach_cap_releases(session, &dispose); in remove_session_caps()
1768 BUG_ON(session->s_nr_caps > 0); in remove_session_caps()
1769 BUG_ON(!list_empty(&session->s_cap_flushing)); in remove_session_caps()
1770 spin_unlock(&session->s_cap_lock); in remove_session_caps()
1771 dispose_cap_releases(session->s_mdsc, &dispose); in remove_session_caps()
1798 if (cap->cap_gen < atomic_read(&cap->session->s_cap_gen)) { in wake_up_session_cb()
1810 static void wake_up_session_caps(struct ceph_mds_session *session, int ev) in wake_up_session_caps() argument
1812 dout("wake_up_session_caps %p mds%d\n", session, session->s_mds); in wake_up_session_caps()
1813 ceph_iterate_session_caps(session, wake_up_session_cb, in wake_up_session_caps()
1824 struct ceph_mds_session *session) in send_renew_caps() argument
1829 if (time_after_eq(jiffies, session->s_cap_ttl) && in send_renew_caps()
1830 time_after_eq(session->s_cap_ttl, session->s_renew_requested)) in send_renew_caps()
1831 pr_info("mds%d caps stale\n", session->s_mds); in send_renew_caps()
1832 session->s_renew_requested = jiffies; in send_renew_caps()
1836 state = ceph_mdsmap_get_state(mdsc->mdsmap, session->s_mds); in send_renew_caps()
1839 session->s_mds, ceph_mds_state_name(state)); in send_renew_caps()
1843 dout("send_renew_caps to mds%d (%s)\n", session->s_mds, in send_renew_caps()
1846 ++session->s_renew_seq); in send_renew_caps()
1849 ceph_con_send(&session->s_con, msg); in send_renew_caps()
1854 struct ceph_mds_session *session, u64 seq) in send_flushmsg_ack() argument
1859 session->s_mds, ceph_session_state_name(session->s_state), seq); in send_flushmsg_ack()
1863 ceph_con_send(&session->s_con, msg); in send_flushmsg_ack()
1874 struct ceph_mds_session *session, int is_renew) in renewed_caps() argument
1879 spin_lock(&session->s_cap_lock); in renewed_caps()
1880 was_stale = is_renew && time_after_eq(jiffies, session->s_cap_ttl); in renewed_caps()
1882 session->s_cap_ttl = session->s_renew_requested + in renewed_caps()
1886 if (time_before(jiffies, session->s_cap_ttl)) { in renewed_caps()
1887 pr_info("mds%d caps renewed\n", session->s_mds); in renewed_caps()
1890 pr_info("mds%d caps still stale\n", session->s_mds); in renewed_caps()
1894 session->s_mds, session->s_cap_ttl, was_stale ? "stale" : "fresh", in renewed_caps()
1895 time_before(jiffies, session->s_cap_ttl) ? "stale" : "fresh"); in renewed_caps()
1896 spin_unlock(&session->s_cap_lock); in renewed_caps()
1899 wake_up_session_caps(session, RENEWCAPS); in renewed_caps()
1905 static int request_close_session(struct ceph_mds_session *session) in request_close_session() argument
1910 session->s_mds, ceph_session_state_name(session->s_state), in request_close_session()
1911 session->s_seq); in request_close_session()
1913 session->s_seq); in request_close_session()
1916 ceph_con_send(&session->s_con, msg); in request_close_session()
1924 struct ceph_mds_session *session) in __close_session() argument
1926 if (session->s_state >= CEPH_MDS_SESSION_CLOSING) in __close_session()
1928 session->s_state = CEPH_MDS_SESSION_CLOSING; in __close_session()
1929 return request_close_session(session); in __close_session()
2039 struct ceph_mds_session *session, in ceph_trim_caps() argument
2042 int trim_caps = session->s_nr_caps - max_caps; in ceph_trim_caps()
2045 session->s_mds, session->s_nr_caps, max_caps, trim_caps); in ceph_trim_caps()
2049 ceph_iterate_session_caps(session, trim_caps_cb, &remaining); in ceph_trim_caps()
2051 session->s_mds, session->s_nr_caps, max_caps, in ceph_trim_caps()
2055 ceph_flush_cap_releases(mdsc, session); in ceph_trim_caps()
2099 struct ceph_mds_session *session) in ceph_send_cap_releases() argument
2114 spin_lock(&session->s_cap_lock); in ceph_send_cap_releases()
2116 list_splice_init(&session->s_cap_releases, &tmp_list); in ceph_send_cap_releases()
2117 num_cap_releases = session->s_num_cap_releases; in ceph_send_cap_releases()
2118 session->s_num_cap_releases = 0; in ceph_send_cap_releases()
2119 spin_unlock(&session->s_cap_lock); in ceph_send_cap_releases()
2159 dout("send_cap_releases mds%d %p\n", session->s_mds, msg); in ceph_send_cap_releases()
2160 ceph_con_send(&session->s_con, msg); in ceph_send_cap_releases()
2167 spin_lock(&session->s_cap_lock); in ceph_send_cap_releases()
2168 if (!list_empty(&session->s_cap_releases)) in ceph_send_cap_releases()
2170 spin_unlock(&session->s_cap_lock); in ceph_send_cap_releases()
2179 dout("send_cap_releases mds%d %p\n", session->s_mds, msg); in ceph_send_cap_releases()
2180 ceph_con_send(&session->s_con, msg); in ceph_send_cap_releases()
2185 session->s_mds); in ceph_send_cap_releases()
2186 spin_lock(&session->s_cap_lock); in ceph_send_cap_releases()
2187 list_splice(&tmp_list, &session->s_cap_releases); in ceph_send_cap_releases()
2188 session->s_num_cap_releases += num_cap_releases; in ceph_send_cap_releases()
2189 spin_unlock(&session->s_cap_lock); in ceph_send_cap_releases()
2194 struct ceph_mds_session *session = in ceph_cap_release_work() local
2197 mutex_lock(&session->s_mutex); in ceph_cap_release_work()
2198 if (session->s_state == CEPH_MDS_SESSION_OPEN || in ceph_cap_release_work()
2199 session->s_state == CEPH_MDS_SESSION_HUNG) in ceph_cap_release_work()
2200 ceph_send_cap_releases(session->s_mdsc, session); in ceph_cap_release_work()
2201 mutex_unlock(&session->s_mutex); in ceph_cap_release_work()
2202 ceph_put_mds_session(session); in ceph_cap_release_work()
2206 struct ceph_mds_session *session) in ceph_flush_cap_releases() argument
2211 ceph_get_mds_session(session); in ceph_flush_cap_releases()
2213 &session->s_cap_release_work)) { in ceph_flush_cap_releases()
2216 ceph_put_mds_session(session); in ceph_flush_cap_releases()
2224 void __ceph_queue_cap_release(struct ceph_mds_session *session, in __ceph_queue_cap_release() argument
2227 list_add_tail(&cap->session_caps, &session->s_cap_releases); in __ceph_queue_cap_release()
2228 session->s_num_cap_releases++; in __ceph_queue_cap_release()
2230 if (!(session->s_num_cap_releases % CEPH_CAPS_PER_RELEASE)) in __ceph_queue_cap_release()
2231 ceph_flush_cap_releases(session->s_mdsc, session); in __ceph_queue_cap_release()
2546 static struct ceph_msg *create_request_message(struct ceph_mds_session *session, in create_request_message() argument
2550 int mds = session->s_mds; in create_request_message()
2551 struct ceph_mds_client *mdsc = session->s_mdsc; in create_request_message()
2563 bool legacy = !(session->s_con.peer_features & CEPH_FEATURE_FS_BTIME); in create_request_message()
2730 static int __prepare_send_request(struct ceph_mds_session *session, in __prepare_send_request() argument
2734 int mds = session->s_mds; in __prepare_send_request()
2735 struct ceph_mds_client *mdsc = session->s_mdsc; in __prepare_send_request()
2764 session->s_con.peer_features); in __prepare_send_request()
2790 msg = create_request_message(session, req, drop_cap_releases); in __prepare_send_request()
2798 session->s_con.peer_features); in __prepare_send_request()
2817 static int __send_request(struct ceph_mds_session *session, in __send_request() argument
2823 err = __prepare_send_request(session, req, drop_cap_releases); in __send_request()
2826 ceph_con_send(&session->s_con, req->r_request); in __send_request()
2838 struct ceph_mds_session *session = NULL; in __do_request() local
2894 session = __ceph_lookup_mds_session(mdsc, mds); in __do_request()
2895 if (!session) { in __do_request()
2896 session = register_session(mdsc, mds); in __do_request()
2897 if (IS_ERR(session)) { in __do_request()
2898 err = PTR_ERR(session); in __do_request()
2902 req->r_session = ceph_get_mds_session(session); in __do_request()
2904 dout("do_request mds%d session %p state %s\n", mds, session, in __do_request()
2905 ceph_session_state_name(session->s_state)); in __do_request()
2906 if (session->s_state != CEPH_MDS_SESSION_OPEN && in __do_request()
2907 session->s_state != CEPH_MDS_SESSION_HUNG) { in __do_request()
2923 if (session->s_state == CEPH_MDS_SESSION_REJECTED) { in __do_request()
2931 if (session->s_state == CEPH_MDS_SESSION_NEW || in __do_request()
2932 session->s_state == CEPH_MDS_SESSION_CLOSING) { in __do_request()
2933 err = __open_session(mdsc, session); in __do_request()
2940 list_add(&req->r_wait, &session->s_waiting); in __do_request()
2950 err = __send_request(session, req, false); in __do_request()
2953 ceph_put_mds_session(session); in __do_request()
3155 static void handle_reply(struct ceph_mds_session *session, struct ceph_msg *msg) in handle_reply() argument
3157 struct ceph_mds_client *mdsc = session->s_mdsc; in handle_reply()
3164 int mds = session->s_mds; in handle_reply()
3184 if (req->r_session != session) { in handle_reply()
3186 " not mds%d\n", tid, session->s_mds, in handle_reply()
3266 if (test_bit(CEPHFS_FEATURE_REPLY_ENCODING, &session->s_features)) in handle_reply()
3267 err = parse_reply_info(session, msg, rinfo, (u64)-1); in handle_reply()
3269 err = parse_reply_info(session, msg, rinfo, session->s_con.peer_features); in handle_reply()
3283 mutex_lock(&session->s_mutex); in handle_reply()
3289 mutex_lock(&session->s_mutex); in handle_reply()
3352 mutex_unlock(&session->s_mutex); in handle_reply()
3370 struct ceph_mds_session *session, in handle_forward() argument
3449 static void handle_session(struct ceph_mds_session *session, in handle_session() argument
3452 struct ceph_mds_client *mdsc = session->s_mdsc; in handle_session()
3453 int mds = session->s_mds; in handle_session()
3486 ceph_get_mds_session(session); in handle_session()
3487 __unregister_session(mdsc, session); in handle_session()
3490 session->s_ttl = jiffies + HZ*mdsc->mdsmap->m_session_autoclose; in handle_session()
3493 mutex_lock(&session->s_mutex); in handle_session()
3496 mds, ceph_session_op_name(op), session, in handle_session()
3497 ceph_session_state_name(session->s_state), seq); in handle_session()
3499 if (session->s_state == CEPH_MDS_SESSION_HUNG) { in handle_session()
3500 session->s_state = CEPH_MDS_SESSION_OPEN; in handle_session()
3501 pr_info("mds%d came back\n", session->s_mds); in handle_session()
3506 if (session->s_state == CEPH_MDS_SESSION_RECONNECTING) in handle_session()
3507 pr_info("mds%d reconnect success\n", session->s_mds); in handle_session()
3508 session->s_state = CEPH_MDS_SESSION_OPEN; in handle_session()
3509 session->s_features = features; in handle_session()
3510 renewed_caps(mdsc, session, 0); in handle_session()
3511 if (test_bit(CEPHFS_FEATURE_METRIC_COLLECT, &session->s_features)) in handle_session()
3515 __close_session(mdsc, session); in handle_session()
3519 if (session->s_renew_seq == seq) in handle_session()
3520 renewed_caps(mdsc, session, 1); in handle_session()
3524 if (session->s_state == CEPH_MDS_SESSION_RECONNECTING) in handle_session()
3525 pr_info("mds%d reconnect denied\n", session->s_mds); in handle_session()
3526 session->s_state = CEPH_MDS_SESSION_CLOSED; in handle_session()
3527 cleanup_session_requests(mdsc, session); in handle_session()
3528 remove_session_caps(session); in handle_session()
3535 session->s_mds); in handle_session()
3536 atomic_inc(&session->s_cap_gen); in handle_session()
3537 session->s_cap_ttl = jiffies - 1; in handle_session()
3538 send_renew_caps(mdsc, session); in handle_session()
3542 ceph_trim_caps(mdsc, session, le32_to_cpu(h->max_caps)); in handle_session()
3547 spin_lock(&session->s_cap_lock); in handle_session()
3548 if (session->s_num_cap_releases) in handle_session()
3549 ceph_flush_cap_releases(mdsc, session); in handle_session()
3550 spin_unlock(&session->s_cap_lock); in handle_session()
3552 send_flushmsg_ack(mdsc, session, seq); in handle_session()
3556 dout("force_session_readonly %p\n", session); in handle_session()
3557 spin_lock(&session->s_cap_lock); in handle_session()
3558 session->s_readonly = true; in handle_session()
3559 spin_unlock(&session->s_cap_lock); in handle_session()
3560 wake_up_session_caps(session, FORCE_RO); in handle_session()
3564 WARN_ON(session->s_state != CEPH_MDS_SESSION_OPENING); in handle_session()
3565 pr_info("mds%d rejected session\n", session->s_mds); in handle_session()
3566 session->s_state = CEPH_MDS_SESSION_REJECTED; in handle_session()
3567 cleanup_session_requests(mdsc, session); in handle_session()
3568 remove_session_caps(session); in handle_session()
3579 mutex_unlock(&session->s_mutex); in handle_session()
3582 __wake_requests(mdsc, &session->s_waiting); in handle_session()
3588 ceph_put_mds_session(session); in handle_session()
3625 struct ceph_mds_session *session) in replay_unsafe_requests() argument
3630 dout("replay_unsafe_requests mds%d\n", session->s_mds); in replay_unsafe_requests()
3633 list_for_each_entry_safe(req, nreq, &session->s_unsafe, r_unsafe_item) in replay_unsafe_requests()
3634 __send_request(session, req, true); in replay_unsafe_requests()
3650 if (req->r_session->s_mds != session->s_mds) in replay_unsafe_requests()
3655 __send_request(session, req, true); in replay_unsafe_requests()
3721 ceph_con_send(&recon_state->session->s_con, reply); in send_reconnect_partial()
3811 cap->cap_gen = atomic_read(&cap->session->s_cap_gen); in reconnect_caps_cb()
4022 struct ceph_mds_session *session) in send_mds_reconnect() argument
4025 int mds = session->s_mds; in send_mds_reconnect()
4028 .session = session, in send_mds_reconnect()
4042 xa_destroy(&session->s_delegated_inos); in send_mds_reconnect()
4044 mutex_lock(&session->s_mutex); in send_mds_reconnect()
4045 session->s_state = CEPH_MDS_SESSION_RECONNECTING; in send_mds_reconnect()
4046 session->s_seq = 0; in send_mds_reconnect()
4048 dout("session %p state %s\n", session, in send_mds_reconnect()
4049 ceph_session_state_name(session->s_state)); in send_mds_reconnect()
4051 atomic_inc(&session->s_cap_gen); in send_mds_reconnect()
4053 spin_lock(&session->s_cap_lock); in send_mds_reconnect()
4055 session->s_readonly = 0; in send_mds_reconnect()
4061 session->s_cap_reconnect = 1; in send_mds_reconnect()
4063 detach_cap_releases(session, &dispose); in send_mds_reconnect()
4064 spin_unlock(&session->s_cap_lock); in send_mds_reconnect()
4071 ceph_con_close(&session->s_con); in send_mds_reconnect()
4072 ceph_con_open(&session->s_con, in send_mds_reconnect()
4077 replay_unsafe_requests(mdsc, session); in send_mds_reconnect()
4079 ceph_early_kick_flushing_caps(mdsc, session); in send_mds_reconnect()
4088 if (test_bit(CEPHFS_FEATURE_MULTI_RECONNECT, &session->s_features)) { in send_mds_reconnect()
4091 } else if (session->s_con.peer_features & CEPH_FEATURE_MDSENC) { in send_mds_reconnect()
4097 err = ceph_iterate_session_caps(session, reconnect_caps_cb, &recon_state); in send_mds_reconnect()
4099 spin_lock(&session->s_cap_lock); in send_mds_reconnect()
4100 session->s_cap_reconnect = 0; in send_mds_reconnect()
4101 spin_unlock(&session->s_cap_lock); in send_mds_reconnect()
4164 ceph_con_send(&session->s_con, reply); in send_mds_reconnect()
4166 mutex_unlock(&session->s_mutex); in send_mds_reconnect()
4169 __wake_requests(mdsc, &session->s_waiting); in send_mds_reconnect()
4179 mutex_unlock(&session->s_mutex); in send_mds_reconnect()
4368 struct ceph_mds_session *session, in handle_lease() argument
4375 int mds = session->s_mds; in handle_lease()
4401 mutex_lock(&session->s_mutex); in handle_lease()
4402 inc_session_sequence(session); in handle_lease()
4426 if (di->lease_session == session) { in handle_lease()
4435 if (di->lease_session == session && in handle_lease()
4436 di->lease_gen == atomic_read(&session->s_cap_gen) && in handle_lease()
4460 ceph_con_send(&session->s_con, msg); in handle_lease()
4463 mutex_unlock(&session->s_mutex); in handle_lease()
4472 void ceph_mdsc_lease_send_msg(struct ceph_mds_session *session, in ceph_mdsc_lease_send_msg() argument
4482 dentry, ceph_lease_op_name(action), session->s_mds); in ceph_mdsc_lease_send_msg()
4507 ceph_con_send(&session->s_con, msg); in ceph_mdsc_lease_send_msg()
4918 struct ceph_mds_session *session; in ceph_mdsc_close_sessions() local
4927 session = __ceph_lookup_mds_session(mdsc, i); in ceph_mdsc_close_sessions()
4928 if (!session) in ceph_mdsc_close_sessions()
4931 mutex_lock(&session->s_mutex); in ceph_mdsc_close_sessions()
4932 if (__close_session(mdsc, session) <= 0) in ceph_mdsc_close_sessions()
4934 mutex_unlock(&session->s_mutex); in ceph_mdsc_close_sessions()
4935 ceph_put_mds_session(session); in ceph_mdsc_close_sessions()
4949 session = ceph_get_mds_session(mdsc->sessions[i]); in ceph_mdsc_close_sessions()
4950 __unregister_session(mdsc, session); in ceph_mdsc_close_sessions()
4952 mutex_lock(&session->s_mutex); in ceph_mdsc_close_sessions()
4953 remove_session_caps(session); in ceph_mdsc_close_sessions()
4954 mutex_unlock(&session->s_mutex); in ceph_mdsc_close_sessions()
4955 ceph_put_mds_session(session); in ceph_mdsc_close_sessions()
4973 struct ceph_mds_session *session; in ceph_mdsc_force_umount() local
4980 session = __ceph_lookup_mds_session(mdsc, mds); in ceph_mdsc_force_umount()
4981 if (!session) in ceph_mdsc_force_umount()
4984 if (session->s_state == CEPH_MDS_SESSION_REJECTED) in ceph_mdsc_force_umount()
4985 __unregister_session(mdsc, session); in ceph_mdsc_force_umount()
4986 __wake_requests(mdsc, &session->s_waiting); in ceph_mdsc_force_umount()
4989 mutex_lock(&session->s_mutex); in ceph_mdsc_force_umount()
4990 __close_session(mdsc, session); in ceph_mdsc_force_umount()
4991 if (session->s_state == CEPH_MDS_SESSION_CLOSING) { in ceph_mdsc_force_umount()
4992 cleanup_session_requests(mdsc, session); in ceph_mdsc_force_umount()
4993 remove_session_caps(session); in ceph_mdsc_force_umount()
4995 mutex_unlock(&session->s_mutex); in ceph_mdsc_force_umount()
4996 ceph_put_mds_session(session); in ceph_mdsc_force_umount()