Lines Matching refs:fsc

747 	ceph_con_init(&s->s_con, s, &mds_con_ops, &mdsc->fsc->client->msgr);  in register_session()
1079 if (!dir || dir->i_sb != mdsc->fsc->sb) { in __choose_mds()
1290 struct ceph_options *opt = mdsc->fsc->client->options; in create_session_open_msg()
1291 struct ceph_mount_options *fsopt = mdsc->fsc->mount_options; in create_session_open_msg()
1640 struct ceph_fs_client *fsc = (struct ceph_fs_client *)arg; in remove_session_caps_cb() local
1641 struct ceph_mds_client *mdsc = fsc->mdsc; in remove_session_caps_cb()
1655 if (READ_ONCE(fsc->mount_state) == CEPH_MOUNT_SHUTDOWN) { in remove_session_caps_cb()
1746 struct ceph_fs_client *fsc = session->s_mdsc->fsc; in remove_session_caps() local
1747 struct super_block *sb = fsc->sb; in remove_session_caps()
1751 ceph_iterate_session_caps(session, remove_session_caps_cb, fsc); in remove_session_caps()
1753 wake_up_all(&fsc->mdsc->cap_flushing_wq); in remove_session_caps()
2123 struct ceph_osd_client *osdc = &mdsc->fsc->client->osdc; in ceph_send_cap_releases()
2231 if (queue_work(mdsc->fsc->cap_wq, in ceph_flush_cap_releases()
2267 if (queue_work(mdsc->fsc->cap_wq, &mdsc->cap_reclaim_work)) { in ceph_queue_cap_reclaim_work()
2295 struct ceph_mount_options *opt = req->r_mdsc->fsc->mount_options; in ceph_alloc_readdir_reply_buffer()
2832 if (READ_ONCE(mdsc->fsc->mount_state) == CEPH_MOUNT_SHUTDOWN) { in __do_request()
2837 if (READ_ONCE(mdsc->fsc->mount_state) == CEPH_MOUNT_MOUNTING) { in __do_request()
2848 if (!(mdsc->fsc->mount_options->flags & in __do_request()
3263 err = ceph_fill_trace(mdsc->fsc->sb, req); in handle_reply()
3517 mdsc->fsc->blocklisted = true; in handle_session()
4017 if (mdsc->fsc->sb->s_root) in send_mds_reconnect()
4018 shrink_dcache_parent(mdsc->fsc->sb->s_root); in send_mds_reconnect()
4266 struct super_block *sb = mdsc->fsc->sb; in handle_lease()
4417 struct ceph_fs_client *fsc = mdsc->fsc; in maybe_recover_session() local
4419 if (!ceph_test_mount_opt(fsc, CLEANRECOVER)) in maybe_recover_session()
4422 if (READ_ONCE(fsc->mount_state) != CEPH_MOUNT_MOUNTED) in maybe_recover_session()
4425 if (!READ_ONCE(fsc->blocklisted)) in maybe_recover_session()
4428 if (fsc->last_auto_reconnect && in maybe_recover_session()
4429 time_before(jiffies, fsc->last_auto_reconnect + HZ * 60 * 30)) in maybe_recover_session()
4433 fsc->last_auto_reconnect = jiffies; in maybe_recover_session()
4434 ceph_force_reconnect(fsc->sb); in maybe_recover_session()
4555 int ceph_mdsc_init(struct ceph_fs_client *fsc) in ceph_mdsc_init() argument
4564 mdsc->fsc = fsc; in ceph_mdsc_init()
4615 ceph_adjust_caps_max_min(mdsc, fsc->mount_options); in ceph_mdsc_init()
4627 fsc->mdsc = mdsc; in ceph_mdsc_init()
4643 struct ceph_options *opts = mdsc->fsc->client->options; in wait_requests()
4764 if (READ_ONCE(mdsc->fsc->mount_state) == CEPH_MOUNT_SHUTDOWN) in ceph_mdsc_sync()
4795 if (READ_ONCE(mdsc->fsc->mount_state) == CEPH_MOUNT_SHUTDOWN) in done_closing_sessions()
4805 struct ceph_options *opts = mdsc->fsc->client->options; in ceph_mdsc_close_sessions()
4913 void ceph_mdsc_destroy(struct ceph_fs_client *fsc) in ceph_mdsc_destroy() argument
4915 struct ceph_mds_client *mdsc = fsc->mdsc; in ceph_mdsc_destroy()
4928 fsc->mdsc = NULL; in ceph_mdsc_destroy()
4935 struct ceph_fs_client *fsc = mdsc->fsc; in ceph_mdsc_handle_fsmap() local
4936 const char *mds_namespace = fsc->mount_options->mds_namespace; in ceph_mdsc_handle_fsmap()
4988 ceph_monc_got_map(&fsc->client->monc, CEPH_SUB_FSMAP, epoch); in ceph_mdsc_handle_fsmap()
4990 fsc->client->monc.fs_cluster_id = mount_fscid; in ceph_mdsc_handle_fsmap()
4991 ceph_monc_want_map(&fsc->client->monc, CEPH_SUB_MDSMAP, in ceph_mdsc_handle_fsmap()
4993 ceph_monc_renew_subs(&fsc->client->monc); in ceph_mdsc_handle_fsmap()
5024 if (ceph_check_fsid(mdsc->fsc->client, &fsid) < 0) in ceph_mdsc_handle_mdsmap()
5054 mdsc->fsc->max_file_size = min((loff_t)mdsc->mdsmap->m_max_file_size, in ceph_mdsc_handle_mdsmap()
5058 ceph_monc_got_map(&mdsc->fsc->client->monc, CEPH_SUB_MDSMAP, in ceph_mdsc_handle_mdsmap()
5164 struct ceph_auth_client *ac = mdsc->fsc->client->monc.auth; in get_authorizer()
5192 struct ceph_auth_client *ac = mdsc->fsc->client->monc.auth; in add_authorizer_challenge()
5202 struct ceph_auth_client *ac = mdsc->fsc->client->monc.auth; in verify_authorizer_reply()
5211 struct ceph_auth_client *ac = mdsc->fsc->client->monc.auth; in invalidate_authorizer()
5215 return ceph_monc_validate_auth(&mdsc->fsc->client->monc); in invalidate_authorizer()