Lines Matching refs:fsc
632 ceph_con_init(&s->s_con, s, &mds_con_ops, &mdsc->fsc->client->msgr); in register_session()
925 if (!dir || dir->i_sb != mdsc->fsc->sb) { in __choose_mds()
1078 struct ceph_options *opt = mdsc->fsc->client->options; in create_session_open_msg()
1079 struct ceph_mount_options *fsopt = mdsc->fsc->mount_options; in create_session_open_msg()
1381 struct ceph_fs_client *fsc = (struct ceph_fs_client *)arg; in remove_session_caps_cb() local
1395 struct ceph_mds_client *mdsc = fsc->mdsc; in remove_session_caps_cb()
1397 if (READ_ONCE(fsc->mount_state) == CEPH_MOUNT_SHUTDOWN) { in remove_session_caps_cb()
1482 struct ceph_fs_client *fsc = session->s_mdsc->fsc; in remove_session_caps() local
1483 struct super_block *sb = fsc->sb; in remove_session_caps()
1487 ceph_iterate_session_caps(session, remove_session_caps_cb, fsc); in remove_session_caps()
1489 wake_up_all(&fsc->mdsc->cap_flushing_wq); in remove_session_caps()
1861 struct ceph_osd_client *osdc = &mdsc->fsc->client->osdc; in ceph_send_cap_releases()
1969 if (queue_work(mdsc->fsc->cap_wq, in ceph_flush_cap_releases()
2005 if (queue_work(mdsc->fsc->cap_wq, &mdsc->cap_reclaim_work)) { in ceph_queue_cap_reclaim_work()
2033 struct ceph_mount_options *opt = req->r_mdsc->fsc->mount_options; in ceph_alloc_readdir_reply_buffer()
2092 req->r_stamp = timespec64_trunc(ts, mdsc->fsc->sb->s_time_gran); in ceph_mdsc_create_request()
2534 if (READ_ONCE(mdsc->fsc->mount_state) == CEPH_MOUNT_SHUTDOWN) { in __do_request()
2539 if (READ_ONCE(mdsc->fsc->mount_state) == CEPH_MOUNT_MOUNTING) { in __do_request()
2550 if (!(mdsc->fsc->mount_options->flags & in __do_request()
2932 err = ceph_fill_trace(mdsc->fsc->sb, req); in handle_reply()
3176 mdsc->fsc->blacklisted = true; in handle_session()
3620 if (mdsc->fsc->sb->s_root) in send_mds_reconnect()
3621 shrink_dcache_parent(mdsc->fsc->sb->s_root); in send_mds_reconnect()
3865 struct super_block *sb = mdsc->fsc->sb; in handle_lease()
4028 struct ceph_fs_client *fsc = mdsc->fsc; in maybe_recover_session() local
4030 if (!ceph_test_mount_opt(fsc, CLEANRECOVER)) in maybe_recover_session()
4033 if (READ_ONCE(fsc->mount_state) != CEPH_MOUNT_MOUNTED) in maybe_recover_session()
4036 if (!READ_ONCE(fsc->blacklisted)) in maybe_recover_session()
4039 if (fsc->last_auto_reconnect && in maybe_recover_session()
4040 time_before(jiffies, fsc->last_auto_reconnect + HZ * 60 * 30)) in maybe_recover_session()
4044 fsc->last_auto_reconnect = jiffies; in maybe_recover_session()
4045 ceph_force_reconnect(fsc->sb); in maybe_recover_session()
4127 int ceph_mdsc_init(struct ceph_fs_client *fsc) in ceph_mdsc_init() argument
4135 mdsc->fsc = fsc; in ceph_mdsc_init()
4143 fsc->mdsc = mdsc; in ceph_mdsc_init()
4184 ceph_adjust_caps_max_min(mdsc, fsc->mount_options); in ceph_mdsc_init()
4204 struct ceph_options *opts = mdsc->fsc->client->options; in wait_requests()
4300 if (READ_ONCE(mdsc->fsc->mount_state) == CEPH_MOUNT_SHUTDOWN) in ceph_mdsc_sync()
4331 if (READ_ONCE(mdsc->fsc->mount_state) == CEPH_MOUNT_SHUTDOWN) in done_closing_sessions()
4341 struct ceph_options *opts = mdsc->fsc->client->options; in ceph_mdsc_close_sessions()
4440 void ceph_mdsc_destroy(struct ceph_fs_client *fsc) in ceph_mdsc_destroy() argument
4442 struct ceph_mds_client *mdsc = fsc->mdsc; in ceph_mdsc_destroy()
4453 fsc->mdsc = NULL; in ceph_mdsc_destroy()
4460 struct ceph_fs_client *fsc = mdsc->fsc; in ceph_mdsc_handle_fsmap() local
4461 const char *mds_namespace = fsc->mount_options->mds_namespace; in ceph_mdsc_handle_fsmap()
4513 ceph_monc_got_map(&fsc->client->monc, CEPH_SUB_FSMAP, epoch); in ceph_mdsc_handle_fsmap()
4515 fsc->client->monc.fs_cluster_id = mount_fscid; in ceph_mdsc_handle_fsmap()
4516 ceph_monc_want_map(&fsc->client->monc, CEPH_SUB_MDSMAP, in ceph_mdsc_handle_fsmap()
4518 ceph_monc_renew_subs(&fsc->client->monc); in ceph_mdsc_handle_fsmap()
4549 if (ceph_check_fsid(mdsc->fsc->client, &fsid) < 0) in ceph_mdsc_handle_mdsmap()
4579 mdsc->fsc->max_file_size = min((loff_t)mdsc->mdsmap->m_max_file_size, in ceph_mdsc_handle_mdsmap()
4583 ceph_monc_got_map(&mdsc->fsc->client->monc, CEPH_SUB_MDSMAP, in ceph_mdsc_handle_mdsmap()
4693 struct ceph_auth_client *ac = mdsc->fsc->client->monc.auth; in get_authorizer()
4721 struct ceph_auth_client *ac = mdsc->fsc->client->monc.auth; in add_authorizer_challenge()
4731 struct ceph_auth_client *ac = mdsc->fsc->client->monc.auth; in verify_authorizer_reply()
4740 struct ceph_auth_client *ac = mdsc->fsc->client->monc.auth; in invalidate_authorizer()
4744 return ceph_monc_validate_auth(&mdsc->fsc->client->monc); in invalidate_authorizer()