Home
last modified time | relevance | path

Searched refs:monc (Results 1 – 10 of 10) sorted by relevance

/linux-4.4.14/net/ceph/
Dmon_client.c35 static int __validate_auth(struct ceph_mon_client *monc);
104 static void __send_prepared_auth_request(struct ceph_mon_client *monc, int len) in __send_prepared_auth_request() argument
106 monc->pending_auth = 1; in __send_prepared_auth_request()
107 monc->m_auth->front.iov_len = len; in __send_prepared_auth_request()
108 monc->m_auth->hdr.front_len = cpu_to_le32(len); in __send_prepared_auth_request()
109 ceph_msg_revoke(monc->m_auth); in __send_prepared_auth_request()
110 ceph_msg_get(monc->m_auth); /* keep our ref */ in __send_prepared_auth_request()
111 ceph_con_send(&monc->con, monc->m_auth); in __send_prepared_auth_request()
117 static void __close_session(struct ceph_mon_client *monc) in __close_session() argument
119 dout("__close_session closing mon%d\n", monc->cur_mon); in __close_session()
[all …]
Ddebugfs.c38 if (client->monc.monmap == NULL) in monmap_show()
41 seq_printf(s, "epoch %d\n", client->monc.monmap->epoch); in monmap_show()
42 for (i = 0; i < client->monc.monmap->num_mon; i++) { in monmap_show()
44 &client->monc.monmap->mon_inst[i]; in monmap_show()
113 struct ceph_mon_client *monc = &client->monc; in monc_show() local
116 mutex_lock(&monc->mutex); in monc_show()
118 if (monc->have_mdsmap) in monc_show()
119 seq_printf(s, "have mdsmap %u\n", (unsigned int)monc->have_mdsmap); in monc_show()
120 if (monc->have_osdmap) in monc_show()
121 seq_printf(s, "have osdmap %u\n", (unsigned int)monc->have_osdmap); in monc_show()
[all …]
Dceph_common.c174 if (ceph_monmap_contains(client->monc.monmap, in ceph_compare_options()
572 return client->monc.auth->global_id; in ceph_client_id()
614 err = ceph_monc_init(&client->monc, client); in ceph_create_client()
624 ceph_monc_stop(&client->monc); in ceph_create_client()
640 ceph_monc_stop(&client->monc); in ceph_destroy_client()
657 return client->monc.monmap && client->monc.monmap->epoch && in have_mon_and_osd_map()
670 err = ceph_monc_open_session(&client->monc); in __ceph_open_session()
Dosd_client.c1055 struct ceph_auth_client *ac = osd->o_osdc->client->monc.auth; in put_osd()
1565 ceph_monc_request_next_osdmap(&osdc->client->monc); in __ceph_osdc_start_request()
1593 ceph_monc_request_next_osdmap(&osdc->client->monc); in handle_timeout()
2061 ceph_monc_request_next_osdmap(&osdc->client->monc); in kick_requests()
2180 ceph_monc_got_osdmap(&osdc->client->monc, osdc->osdmap->epoch); in ceph_osdc_handle_map()
2190 ceph_monc_request_next_osdmap(&osdc->client->monc); in ceph_osdc_handle_map()
2936 struct ceph_auth_client *ac = osdc->client->monc.auth; in get_authorizer()
2964 struct ceph_auth_client *ac = osdc->client->monc.auth; in verify_authorizer_reply()
2973 struct ceph_auth_client *ac = osdc->client->monc.auth; in invalidate_authorizer()
2976 return ceph_monc_validate_auth(&osdc->client->monc); in invalidate_authorizer()
/linux-4.4.14/include/linux/ceph/
Dmon_client.h31 typedef void (*ceph_monc_request_func_t)(struct ceph_mon_client *monc,
36 struct ceph_mon_client *monc; member
93 extern int ceph_monc_init(struct ceph_mon_client *monc, struct ceph_client *cl);
94 extern void ceph_monc_stop(struct ceph_mon_client *monc);
102 extern int ceph_monc_got_mdsmap(struct ceph_mon_client *monc, u32 have);
103 extern int ceph_monc_got_osdmap(struct ceph_mon_client *monc, u32 have);
105 extern void ceph_monc_request_next_osdmap(struct ceph_mon_client *monc);
106 extern int ceph_monc_wait_osdmap(struct ceph_mon_client *monc, u32 epoch,
109 extern int ceph_monc_do_statfs(struct ceph_mon_client *monc,
112 extern int ceph_monc_do_get_version(struct ceph_mon_client *monc,
[all …]
Dlibceph.h130 struct ceph_mon_client monc; member
/linux-4.4.14/fs/ceph/
Dsuper.c48 struct ceph_monmap *monmap = fsc->client->monc.monmap; in ceph_statfs()
54 err = ceph_monc_do_statfs(&fsc->client->monc, &st); in ceph_statfs()
533 fsc->client->monc.want_mdsmap = 1; in create_fs_client()
Ddebugfs.c163 struct ceph_auth_client *ac = fsc->client->monc.auth; in mds_sessions_show()
Dmds_client.c382 s->s_mdsc->fsc->client->monc.auth, in ceph_put_mds_session()
3751 ceph_monc_got_mdsmap(&mdsc->fsc->client->monc, epoch); in ceph_mdsc_handle_map()
3880 struct ceph_auth_client *ac = mdsc->fsc->client->monc.auth; in get_authorizer()
3908 struct ceph_auth_client *ac = mdsc->fsc->client->monc.auth; in verify_authorizer_reply()
3917 struct ceph_auth_client *ac = mdsc->fsc->client->monc.auth; in invalidate_authorizer()
3921 return ceph_monc_validate_auth(&mdsc->fsc->client->monc); in invalidate_authorizer()
/linux-4.4.14/drivers/block/
Drbd.c4985 ret = ceph_monc_do_get_version(&rbdc->client->monc, "osdmap", in rbd_add_get_pool_id()
4991 ceph_monc_request_next_osdmap(&rbdc->client->monc); in rbd_add_get_pool_id()
4992 (void) ceph_monc_wait_osdmap(&rbdc->client->monc, in rbd_add_get_pool_id()