Lines Matching refs:sessions
569 if (mds >= mdsc->max_sessions || !mdsc->sessions[mds]) in __ceph_lookup_mds_session()
571 return get_session(mdsc->sessions[mds]); in __ceph_lookup_mds_session()
576 if (mds >= mdsc->max_sessions || !mdsc->sessions[mds]) in __have_session()
586 mdsc->sessions[s->s_mds] != s) in __verify_registered_session()
615 if (mdsc->sessions) { in register_session()
616 memcpy(sa, mdsc->sessions, in register_session()
618 kfree(mdsc->sessions); in register_session()
620 mdsc->sessions = sa; in register_session()
654 mdsc->sessions[mds] = s; in register_session()
675 BUG_ON(mdsc->sessions[s->s_mds] != s); in __unregister_session()
676 mdsc->sessions[s->s_mds] = NULL; in __unregister_session()
3760 if (!mdsc->sessions[i]) in check_new_map()
3762 s = mdsc->sessions[i]; in check_new_map()
3831 s = mdsc->sessions[i]; in check_new_map()
4158 mdsc->sessions = NULL; in ceph_mdsc_init()
4386 if (mdsc->sessions[i]) { in ceph_mdsc_close_sessions()
4387 session = get_session(mdsc->sessions[i]); in ceph_mdsc_close_sessions()
4458 kfree(mdsc->sessions); in ceph_mdsc_stop()