/linux-6.12.1/net/ceph/ |
D | osd_client.c | 69 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 567 struct ceph_osd_request *ceph_osdc_alloc_request(struct ceph_osd_client *osdc, in ceph_osdc_alloc_request() argument [all …]
|
D | debugfs.c | 58 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 …]
|
D | cls_lock_client.c | 25 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()
|
D | ceph_common.c | 745 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()
|
D | mon_client.c | 1476 ceph_osdc_handle_map(&monc->client->osdc, msg); in mon_dispatch()
|
/linux-6.12.1/include/linux/ceph/ |
D | osd_client.h | 311 struct ceph_osd_client *osdc; member 439 static inline bool ceph_osdmap_flag(struct ceph_osd_client *osdc, int flag) in ceph_osdmap_flag() argument 441 return osdc->osdmap->flags & flag; in ceph_osdmap_flag() 447 extern int ceph_osdc_init(struct ceph_osd_client *osdc, 449 extern void ceph_osdc_stop(struct ceph_osd_client *osdc); 450 extern void ceph_osdc_reopen_osds(struct ceph_osd_client *osdc); 452 extern void ceph_osdc_handle_map(struct ceph_osd_client *osdc, 454 void ceph_osdc_update_epoch_barrier(struct ceph_osd_client *osdc, u32 eb); 455 void ceph_osdc_abort_requests(struct ceph_osd_client *osdc, int err); 456 void ceph_osdc_clear_abort_err(struct ceph_osd_client *osdc); [all …]
|
D | cls_lock_client.h | 27 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,
|
D | libceph.h | 134 struct ceph_osd_client osdc; member
|
/linux-6.12.1/fs/ceph/ |
D | ioctl.c | 185 struct ceph_osd_client *osdc = in ceph_ioctl_get_dataloc() local 186 &ceph_sb_to_fs_client(inode->i_sb)->client->osdc; in ceph_ioctl_get_dataloc() 198 down_read(&osdc->lock); in ceph_ioctl_get_dataloc() 216 r = ceph_object_locator_to_pg(osdc->osdmap, &oid, &oloc, &pgid); in ceph_ioctl_get_dataloc() 220 up_read(&osdc->lock); in ceph_ioctl_get_dataloc() 224 dl.osd = ceph_pg_to_acting_primary(osdc->osdmap, &pgid); in ceph_ioctl_get_dataloc() 227 ceph_osd_addr(osdc->osdmap, dl.osd); in ceph_ioctl_get_dataloc() 233 up_read(&osdc->lock); in ceph_ioctl_get_dataloc()
|
D | file.c | 1055 struct ceph_osd_client *osdc = &fsc->client->osdc; in __ceph_sync_read() local 1102 req = ceph_osdc_new_request(osdc, &ci->i_layout, in __ceph_sync_read() 1142 ceph_osdc_start_request(osdc, req); in __ceph_sync_read() 1143 ret = ceph_osdc_wait_request(osdc, req); in __ceph_sync_read() 1543 req = ceph_osdc_new_request(&fsc->client->osdc, &ci->i_layout, in ceph_direct_read_write() 1622 ret = ceph_osdc_wait_request(&fsc->client->osdc, req); in ceph_direct_read_write() 1719 struct ceph_osd_client *osdc = &fsc->client->osdc; in ceph_sync_write() local 1811 req = ceph_osdc_new_request(osdc, &ci->i_layout, in ceph_sync_write() 1874 ceph_osdc_start_request(osdc, req); in ceph_sync_write() 1875 ret = ceph_osdc_wait_request(osdc, req); in ceph_sync_write() [all …]
|
D | addr.c | 368 req = ceph_osdc_new_request(&fsc->client->osdc, &ci->i_layout, vino, in ceph_netfs_issue_read() 677 struct ceph_osd_client *osdc = &fsc->client->osdc; in writepage_nounlock() local 727 req = ceph_osdc_new_request(osdc, &ci->i_layout, ceph_vino(inode), in writepage_nounlock() 767 ceph_osdc_start_request(osdc, req); in writepage_nounlock() 768 err = ceph_osdc_wait_request(osdc, req); in writepage_nounlock() 1230 req = ceph_osdc_new_request(&fsc->client->osdc, in ceph_writepages_start() 1237 req = ceph_osdc_new_request(&fsc->client->osdc, in ceph_writepages_start() 1356 ceph_osdc_start_request(&fsc->client->osdc, req); in ceph_writepages_start() 1900 req = ceph_osdc_new_request(&fsc->client->osdc, &ci->i_layout, in ceph_uninline_data() 1910 ceph_osdc_start_request(&fsc->client->osdc, req); in ceph_uninline_data() [all …]
|
D | xattr.c | 62 struct ceph_osd_client *osdc = &fsc->client->osdc; in ceph_vxattrcb_layout() local 74 down_read(&osdc->lock); in ceph_vxattrcb_layout() 75 pool_name = ceph_pg_pool_name_by_id(osdc->osdmap, pool); in ceph_vxattrcb_layout() 110 up_read(&osdc->lock); in ceph_vxattrcb_layout() 166 struct ceph_osd_client *osdc = &fsc->client->osdc; in ceph_vxattrcb_layout_pool() local 170 down_read(&osdc->lock); in ceph_vxattrcb_layout_pool() 171 pool_name = ceph_pg_pool_name_by_id(osdc->osdmap, pool); in ceph_vxattrcb_layout_pool() 179 up_read(&osdc->lock); in ceph_vxattrcb_layout_pool() 1116 struct ceph_osd_client *osdc = &fsc->client->osdc; in ceph_sync_setxattr() local 1156 cpu_to_le32(osdc->osdmap->epoch); in ceph_sync_setxattr()
|
D | super.c | 135 ceph_osdc_sync(&fsc->client->osdc); in ceph_sync_fs() 1012 ceph_osdc_abort_requests(&fsc->client->osdc, -EIO); in __ceph_umount_begin() 1607 ceph_osdc_clear_abort_err(&fsc->client->osdc); in ceph_force_reconnect()
|
D | caps.c | 1262 struct ceph_osd_client *osdc = &mdsc->fsc->client->osdc; in encode_cap_msg() local 1328 ceph_encode_32(&p, READ_ONCE(osdc->epoch_barrier)); in encode_cap_msg() 4413 struct ceph_osd_client *osdc = &mdsc->fsc->client->osdc; in ceph_handle_caps() local 4417 ceph_osdc_update_epoch_barrier(osdc, epoch_barrier); in ceph_handle_caps()
|
D | mds_client.c | 2322 struct ceph_osd_client *osdc = &mdsc->fsc->client->osdc; in ceph_send_cap_releases() local 2328 down_read(&osdc->lock); in ceph_send_cap_releases() 2329 barrier = cpu_to_le32(osdc->epoch_barrier); in ceph_send_cap_releases() 2330 up_read(&osdc->lock); in ceph_send_cap_releases()
|
/linux-6.12.1/drivers/block/ |
D | rbd.c | 1431 struct ceph_osd_client *osdc = &rbd_dev->rbd_client->client->osdc; in __rbd_obj_add_osd_request() local 1437 req = ceph_osdc_alloc_request(osdc, snapc, num_ops, false, GFP_NOIO); in __rbd_obj_add_osd_request() 1730 struct ceph_osd_client *osdc = &rbd_dev->rbd_client->client->osdc; in rbd_object_map_lock() local 1742 ret = ceph_cls_lock(osdc, &oid, &rbd_dev->header_oloc, RBD_LOCK_NAME, in rbd_object_map_lock() 1752 ret = ceph_cls_lock_info(osdc, &oid, &rbd_dev->header_oloc, in rbd_object_map_lock() 1770 ret = ceph_cls_break_lock(osdc, &oid, &rbd_dev->header_oloc, in rbd_object_map_lock() 1788 struct ceph_osd_client *osdc = &rbd_dev->rbd_client->client->osdc; in rbd_object_map_unlock() local 1794 ret = ceph_cls_unlock(osdc, &oid, &rbd_dev->header_oloc, RBD_LOCK_NAME, in rbd_object_map_unlock() 1827 struct ceph_osd_client *osdc = &rbd_dev->rbd_client->client->osdc; in __rbd_object_map_load() local 1851 ret = ceph_osdc_call(osdc, &oid, &rbd_dev->header_oloc, in __rbd_object_map_load() [all …]
|
/linux-6.12.1/drivers/gpu/drm/ingenic/ |
D | ingenic-drm-drv.c | 1099 u32 osdc = 0; in ingenic_drm_bind() local 1367 osdc |= JZ_LCD_OSDC_OSDEN; in ingenic_drm_bind() 1369 osdc |= JZ_LCD_OSDC_ALPHAEN; in ingenic_drm_bind() 1370 regmap_write(priv->map, JZ_REG_LCD_OSDC, osdc); in ingenic_drm_bind()
|