Home
last modified time | relevance | path

Searched refs:osdc (Results 1 – 17 of 17) sorted by relevance

/linux-6.1.9/net/ceph/
Dosd_client.c69 static inline void verify_osdc_locked(struct ceph_osd_client *osdc) in verify_osdc_locked() argument
71 WARN_ON(!rwsem_is_locked(&osdc->lock)); in verify_osdc_locked()
73 static inline void verify_osdc_wrlocked(struct ceph_osd_client *osdc) in verify_osdc_wrlocked() argument
75 WARN_ON(!rwsem_is_wrlocked(&osdc->lock)); in verify_osdc_wrlocked()
79 struct ceph_osd_client *osdc = osd->o_osdc; in verify_osd_locked() local
82 rwsem_is_locked(&osdc->lock)) && in verify_osd_locked()
83 !rwsem_is_wrlocked(&osdc->lock)); in verify_osd_locked()
90 static inline void verify_osdc_locked(struct ceph_osd_client *osdc) { } in verify_osdc_locked() argument
91 static inline void verify_osdc_wrlocked(struct ceph_osd_client *osdc) { } in verify_osdc_wrlocked() argument
540 struct ceph_osd_request *ceph_osdc_alloc_request(struct ceph_osd_client *osdc, in ceph_osdc_alloc_request() argument
[all …]
Ddebugfs.c58 struct ceph_osd_client *osdc = &client->osdc; in osdmap_show() local
59 struct ceph_osdmap *map = osdc->osdmap; in osdmap_show()
65 down_read(&osdc->lock); in osdmap_show()
67 osdc->epoch_barrier, map->flags); in osdmap_show()
134 up_read(&osdc->lock); in osdmap_show()
345 struct ceph_osd_client *osdc = &client->osdc; in osdc_show() local
348 down_read(&osdc->lock); in osdc_show()
350 atomic_read(&osdc->num_requests), in osdc_show()
351 atomic_read(&osdc->num_homeless)); in osdc_show()
352 for (n = rb_first(&osdc->osds); n; n = rb_next(n)) { in osdc_show()
[all …]
Dcls_lock_client.c25 int ceph_cls_lock(struct ceph_osd_client *osdc, in ceph_cls_lock() argument
75 ret = ceph_osdc_call(osdc, oid, oloc, "lock", "lock", in ceph_cls_lock()
93 int ceph_cls_unlock(struct ceph_osd_client *osdc, in ceph_cls_unlock() argument
125 ret = ceph_osdc_call(osdc, oid, oloc, "lock", "unlock", in ceph_cls_unlock()
144 int ceph_cls_break_lock(struct ceph_osd_client *osdc, in ceph_cls_break_lock() argument
180 ret = ceph_osdc_call(osdc, oid, oloc, "lock", "break_lock", in ceph_cls_break_lock()
190 int ceph_cls_set_cookie(struct ceph_osd_client *osdc, in ceph_cls_set_cookie() argument
231 ret = ceph_osdc_call(osdc, oid, oloc, "lock", "set_cookie", in ceph_cls_set_cookie()
334 int ceph_cls_lock_info(struct ceph_osd_client *osdc, in ceph_cls_lock_info() argument
371 ret = ceph_osdc_call(osdc, oid, oloc, "lock", "get_info", in ceph_cls_lock_info()
Dceph_common.c745 err = ceph_osdc_init(&client->osdc, client); in ceph_create_client()
767 ceph_osdc_stop(&client->osdc); in ceph_destroy_client()
784 ceph_osdc_reopen_osds(&client->osdc); in ceph_reset_client_addr()
794 client->osdc.osdmap && client->osdc.osdmap->epoch; in have_mon_and_osd_map()
858 if (client->osdc.osdmap->epoch >= newest_epoch) in ceph_wait_for_latest_osdmap()
861 ceph_osdc_maybe_request_map(&client->osdc); in ceph_wait_for_latest_osdmap()
Dmon_client.c1466 ceph_osdc_handle_map(&monc->client->osdc, msg); in mon_dispatch()
/linux-6.1.9/include/linux/ceph/
Dosd_client.h253 struct ceph_osd_client *osdc; member
381 static inline bool ceph_osdmap_flag(struct ceph_osd_client *osdc, int flag) in ceph_osdmap_flag() argument
383 return osdc->osdmap->flags & flag; in ceph_osdmap_flag()
389 extern int ceph_osdc_init(struct ceph_osd_client *osdc,
391 extern void ceph_osdc_stop(struct ceph_osd_client *osdc);
392 extern void ceph_osdc_reopen_osds(struct ceph_osd_client *osdc);
394 extern void ceph_osdc_handle_reply(struct ceph_osd_client *osdc,
396 extern void ceph_osdc_handle_map(struct ceph_osd_client *osdc,
398 void ceph_osdc_update_epoch_barrier(struct ceph_osd_client *osdc, u32 eb);
399 void ceph_osdc_abort_requests(struct ceph_osd_client *osdc, int err);
[all …]
Dcls_lock_client.h27 int ceph_cls_lock(struct ceph_osd_client *osdc,
32 int ceph_cls_unlock(struct ceph_osd_client *osdc,
36 int ceph_cls_break_lock(struct ceph_osd_client *osdc,
41 int ceph_cls_set_cookie(struct ceph_osd_client *osdc,
49 int ceph_cls_lock_info(struct ceph_osd_client *osdc,
Dlibceph.h144 struct ceph_osd_client osdc; member
/linux-6.1.9/fs/ceph/
Dioctl.c184 struct ceph_osd_client *osdc = in ceph_ioctl_get_dataloc() local
185 &ceph_sb_to_client(inode->i_sb)->client->osdc; in ceph_ioctl_get_dataloc()
197 down_read(&osdc->lock); in ceph_ioctl_get_dataloc()
215 r = ceph_object_locator_to_pg(osdc->osdmap, &oid, &oloc, &pgid); in ceph_ioctl_get_dataloc()
219 up_read(&osdc->lock); in ceph_ioctl_get_dataloc()
223 dl.osd = ceph_pg_to_acting_primary(osdc->osdmap, &pgid); in ceph_ioctl_get_dataloc()
226 ceph_osd_addr(osdc->osdmap, dl.osd); in ceph_ioctl_get_dataloc()
232 up_read(&osdc->lock); in ceph_ioctl_get_dataloc()
Daddr.c319 req = ceph_osdc_new_request(&fsc->client->osdc, &ci->i_layout, vino, subreq->start, &len, in ceph_netfs_issue_read()
321 CEPH_OSD_FLAG_READ | fsc->client->osdc.client->options->read_from_replica, in ceph_netfs_issue_read()
560 struct ceph_osd_client *osdc = &fsc->client->osdc; in writepage_nounlock() local
602 req = ceph_osdc_new_request(osdc, &ci->i_layout, ceph_vino(inode), page_off, &len, 0, 1, in writepage_nounlock()
622 ceph_osdc_start_request(osdc, req); in writepage_nounlock()
623 err = ceph_osdc_wait_request(osdc, req); in writepage_nounlock()
1040 req = ceph_osdc_new_request(&fsc->client->osdc, in ceph_writepages_start()
1047 req = ceph_osdc_new_request(&fsc->client->osdc, in ceph_writepages_start()
1151 ceph_osdc_start_request(&fsc->client->osdc, req); in ceph_writepages_start()
1682 req = ceph_osdc_new_request(&fsc->client->osdc, &ci->i_layout, in ceph_uninline_data()
[all …]
Dfile.c928 struct ceph_osd_client *osdc = &fsc->client->osdc; in ceph_sync_read() local
960 req = ceph_osdc_new_request(osdc, &ci->i_layout, in ceph_sync_read()
983 ceph_osdc_start_request(osdc, req); in ceph_sync_read()
984 ret = ceph_osdc_wait_request(osdc, req); in ceph_sync_read()
1314 req = ceph_osdc_new_request(&fsc->client->osdc, &ci->i_layout, in ceph_direct_read_write()
1385 ret = ceph_osdc_wait_request(&fsc->client->osdc, req); in ceph_direct_read_write()
1516 req = ceph_osdc_new_request(&fsc->client->osdc, &ci->i_layout, in ceph_sync_write()
1561 ceph_osdc_start_request(&fsc->client->osdc, req); in ceph_sync_write()
1562 ret = ceph_osdc_wait_request(&fsc->client->osdc, req); in ceph_sync_write()
1762 struct ceph_osd_client *osdc = &fsc->client->osdc; in ceph_write_iter() local
[all …]
Dxattr.c61 struct ceph_osd_client *osdc = &fsc->client->osdc; in ceph_vxattrcb_layout() local
73 down_read(&osdc->lock); in ceph_vxattrcb_layout()
74 pool_name = ceph_pg_pool_name_by_id(osdc->osdmap, pool); in ceph_vxattrcb_layout()
109 up_read(&osdc->lock); in ceph_vxattrcb_layout()
165 struct ceph_osd_client *osdc = &fsc->client->osdc; in ceph_vxattrcb_layout_pool() local
169 down_read(&osdc->lock); in ceph_vxattrcb_layout_pool()
170 pool_name = ceph_pg_pool_name_by_id(osdc->osdmap, pool); in ceph_vxattrcb_layout_pool()
178 up_read(&osdc->lock); in ceph_vxattrcb_layout_pool()
1068 struct ceph_osd_client *osdc = &fsc->client->osdc; in ceph_sync_setxattr() local
1108 cpu_to_le32(osdc->osdmap->epoch); in ceph_sync_setxattr()
Dsuper.c129 ceph_osdc_sync(&fsc->client->osdc); in ceph_sync_fs()
973 ceph_osdc_abort_requests(&fsc->client->osdc, -EIO); in __ceph_umount_begin()
1412 ceph_osdc_clear_abort_err(&fsc->client->osdc); in ceph_force_reconnect()
Dcaps.c1232 struct ceph_osd_client *osdc = &arg->session->s_mdsc->fsc->client->osdc; in encode_cap_msg() local
1289 ceph_encode_32(&p, READ_ONCE(osdc->epoch_barrier)); in encode_cap_msg()
4132 struct ceph_osd_client *osdc = &mdsc->fsc->client->osdc; in ceph_handle_caps() local
4136 ceph_osdc_update_epoch_barrier(osdc, epoch_barrier); in ceph_handle_caps()
Dmds_client.c2095 struct ceph_osd_client *osdc = &mdsc->fsc->client->osdc; in ceph_send_cap_releases() local
2101 down_read(&osdc->lock); in ceph_send_cap_releases()
2102 barrier = cpu_to_le32(osdc->epoch_barrier); in ceph_send_cap_releases()
2103 up_read(&osdc->lock); in ceph_send_cap_releases()
/linux-6.1.9/drivers/block/
Drbd.c1412 struct ceph_osd_client *osdc = &rbd_dev->rbd_client->client->osdc; in __rbd_obj_add_osd_request() local
1418 req = ceph_osdc_alloc_request(osdc, snapc, num_ops, false, GFP_NOIO); in __rbd_obj_add_osd_request()
1707 struct ceph_osd_client *osdc = &rbd_dev->rbd_client->client->osdc; in rbd_object_map_lock() local
1719 ret = ceph_cls_lock(osdc, &oid, &rbd_dev->header_oloc, RBD_LOCK_NAME, in rbd_object_map_lock()
1729 ret = ceph_cls_lock_info(osdc, &oid, &rbd_dev->header_oloc, in rbd_object_map_lock()
1747 ret = ceph_cls_break_lock(osdc, &oid, &rbd_dev->header_oloc, in rbd_object_map_lock()
1765 struct ceph_osd_client *osdc = &rbd_dev->rbd_client->client->osdc; in rbd_object_map_unlock() local
1771 ret = ceph_cls_unlock(osdc, &oid, &rbd_dev->header_oloc, RBD_LOCK_NAME, in rbd_object_map_unlock()
1804 struct ceph_osd_client *osdc = &rbd_dev->rbd_client->client->osdc; in __rbd_object_map_load() local
1828 ret = ceph_osdc_call(osdc, &oid, &rbd_dev->header_oloc, in __rbd_object_map_load()
[all …]
/linux-6.1.9/drivers/gpu/drm/ingenic/
Dingenic-drm-drv.c1101 u32 osdc = 0; in ingenic_drm_bind() local
1359 osdc |= JZ_LCD_OSDC_OSDEN; in ingenic_drm_bind()
1361 osdc |= JZ_LCD_OSDC_ALPHAEN; in ingenic_drm_bind()
1362 regmap_write(priv->map, JZ_REG_LCD_OSDC, osdc); in ingenic_drm_bind()