/linux-4.1.27/drivers/staging/lustre/lustre/obdclass/ |
D | obd_config.c | 336 struct obd_device *obd = NULL; in class_attach() local 361 obd = class_newdev(typename, name); in class_attach() 362 if (IS_ERR(obd)) { in class_attach() 364 rc = PTR_ERR(obd); in class_attach() 365 obd = NULL; in class_attach() 370 LASSERTF(obd != NULL, "Cannot get obd device %s of type %s\n", in class_attach() 372 LASSERTF(obd->obd_magic == OBD_DEVICE_MAGIC, in class_attach() 374 obd, obd->obd_magic, OBD_DEVICE_MAGIC); in class_attach() 375 LASSERTF(strncmp(obd->obd_name, name, strlen(name)) == 0, in class_attach() 376 "%p obd_name %s != %s\n", obd, obd->obd_name, name); in class_attach() [all …]
|
D | genops.c | 71 struct obd_device *obd; in obd_device_alloc() local 73 OBD_SLAB_ALLOC_PTR_GFP(obd, obd_device_cachep, GFP_NOFS); in obd_device_alloc() 74 if (obd != NULL) { in obd_device_alloc() 75 obd->obd_magic = OBD_DEVICE_MAGIC; in obd_device_alloc() 77 return obd; in obd_device_alloc() 80 static void obd_device_free(struct obd_device *obd) in obd_device_free() argument 82 LASSERT(obd != NULL); in obd_device_free() 83 LASSERTF(obd->obd_magic == OBD_DEVICE_MAGIC, "obd %p obd_magic %08x != %08x\n", in obd_device_free() 84 obd, obd->obd_magic, OBD_DEVICE_MAGIC); in obd_device_free() 85 if (obd->obd_namespace != NULL) { in obd_device_free() [all …]
|
D | llog_obd.c | 45 static struct llog_ctxt *llog_new_ctxt(struct obd_device *obd) in llog_new_ctxt() argument 53 ctxt->loc_obd = obd; in llog_new_ctxt() 75 struct obd_device *obd; in __llog_ctxt_put() local 86 obd = ctxt->loc_obd; in __llog_ctxt_put() 87 spin_lock(&obd->obd_dev_lock); in __llog_ctxt_put() 89 spin_unlock(&obd->obd_dev_lock); in __llog_ctxt_put() 93 LASSERTF(obd->obd_starting == 1 || in __llog_ctxt_put() 94 obd->obd_stopping == 1 || obd->obd_set_up == 0, in __llog_ctxt_put() 95 "wrong obd state: %d/%d/%d\n", !!obd->obd_starting, in __llog_ctxt_put() 96 !!obd->obd_stopping, !!obd->obd_set_up); in __llog_ctxt_put() [all …]
|
D | lprocfs_status.c | 442 struct obd_device *obd = data; in lprocfs_rd_uuid() local 444 LASSERT(obd != NULL); in lprocfs_rd_uuid() 445 seq_printf(m, "%s\n", obd->obd_uuid.uuid); in lprocfs_rd_uuid() 462 struct obd_device *obd = data; in lprocfs_rd_blksize() local 464 int rc = obd_statfs(NULL, obd->obd_self_export, &osfs, in lprocfs_rd_blksize() 476 struct obd_device *obd = data; in lprocfs_rd_kbytestotal() local 478 int rc = obd_statfs(NULL, obd->obd_self_export, &osfs, in lprocfs_rd_kbytestotal() 497 struct obd_device *obd = data; in lprocfs_rd_kbytesfree() local 499 int rc = obd_statfs(NULL, obd->obd_self_export, &osfs, in lprocfs_rd_kbytesfree() 518 struct obd_device *obd = data; in lprocfs_rd_kbytesavail() local [all …]
|
D | class_obd.c | 207 struct obd_device *obd = NULL; in class_handle_ioctl() local 350 obd = class_num2obd(index); in class_handle_ioctl() 351 if (!obd) { in class_handle_ioctl() 356 if (obd->obd_stopping) in class_handle_ioctl() 358 else if (obd->obd_set_up) in class_handle_ioctl() 360 else if (obd->obd_attached) in class_handle_ioctl() 366 (int)index, status, obd->obd_type->typ_name, in class_handle_ioctl() 367 obd->obd_name, obd->obd_uuid.uuid, in class_handle_ioctl() 368 atomic_read(&obd->obd_refcount)); in class_handle_ioctl() 386 obd = class_name2obd(data->ioc_inlbuf4); in class_handle_ioctl() [all …]
|
D | obd_mount.c | 208 struct obd_device *obd; in lustre_start_mgc() local 266 obd = class_name2obd(mgcname); in lustre_start_mgc() 267 if (obd && !obd->obd_stopping) { in lustre_start_mgc() 270 rc = obd_set_info_async(NULL, obd->obd_self_export, in lustre_start_mgc() 277 atomic_inc(&obd->u.cli.cl_mgc_refcount); in lustre_start_mgc() 285 rc = obd_get_info(NULL, obd->obd_self_export, in lustre_start_mgc() 317 rc = obd_set_info_async(NULL, obd->obd_self_export, in lustre_start_mgc() 420 obd = class_name2obd(mgcname); in lustre_start_mgc() 421 if (!obd) { in lustre_start_mgc() 427 rc = obd_set_info_async(NULL, obd->obd_self_export, in lustre_start_mgc() [all …]
|
D | llog.c | 944 int llog_backup(const struct lu_env *env, struct obd_device *obd, in llog_backup() argument 961 obd->obd_name, name, rc); in llog_backup() 978 obd->obd_name, backup, rc); in llog_backup() 985 obd->obd_name, name, backup, llh->lgh_obj, in llog_backup() 1000 obd->obd_name, name, rc); in llog_backup()
|
/linux-4.1.27/drivers/staging/lustre/lustre/include/ |
D | obd_class.h | 83 void class_release_dev(struct obd_device *obd); 102 int obd_export_evict_by_nid(struct obd_device *obd, const char *nid); 103 int obd_export_evict_by_uuid(struct obd_device *obd, const char *uuid); 110 void obd_exports_barrier(struct obd_device *obd); 128 int class_setup(struct obd_device *obd, struct lustre_cfg *lcfg); 129 int class_cleanup(struct obd_device *obd, struct lustre_cfg *lcfg); 130 int class_detach(struct obd_device *obd, struct lustre_cfg *lcfg); 131 struct obd_device *class_incref(struct obd_device *obd, 133 void class_decref(struct obd_device *obd, 135 void dump_exports(struct obd_device *obd, int locks); [all …]
|
D | obd.h | 441 #define obd2cli_tgt(obd) ((char *)(obd)->u.cli.cl_target_uuid.uuid) argument 1140 int (*o_fid_init)(struct obd_device *obd, 1142 int (*o_fid_fini)(struct obd_device *obd); 1201 int (*o_notify)(struct obd_device *obd, struct obd_device *watched, 1214 int (*o_pool_new)(struct obd_device *obd, char *poolname); 1215 int (*o_pool_del)(struct obd_device *obd, char *poolname); 1216 int (*o_pool_add)(struct obd_device *obd, char *poolname, 1218 int (*o_pool_rem)(struct obd_device *obd, char *poolname, 1220 void (*o_getref)(struct obd_device *obd); 1221 void (*o_putref)(struct obd_device *obd); [all …]
|
D | lprocfs_status.h | 560 extern int lprocfs_add_clear_entry(struct obd_device *obd, 572 extern void lprocfs_free_per_client_stats(struct obd_device *obd); 595 extern int lprocfs_obd_setup(struct obd_device *obd, struct lprocfs_vars *list); 596 extern int lprocfs_obd_cleanup(struct obd_device *obd); 673 #define LPROCFS_CLIMP_CHECK(obd) do { \ argument 674 typecheck(struct obd_device *, obd); \ 675 down_read(&(obd)->u.cli.cl_sem); \ 676 if ((obd)->u.cli.cl_import == NULL) { \ 677 up_read(&(obd)->u.cli.cl_sem); \ 681 #define LPROCFS_CLIMP_EXIT(obd) \ argument [all …]
|
D | lustre_log.h | 138 int llog_backup(const struct lu_env *env, struct obd_device *obd, 200 int llog_setup(const struct lu_env *env, struct obd_device *obd, 222 int (*lop_setup)(const struct lu_env *env, struct obd_device *obd, 427 static inline struct llog_ctxt *llog_get_context(struct obd_device *obd, in llog_get_context() argument 430 return llog_group_get_ctxt(&obd->obd_olg, index); in llog_get_context() 438 static inline int llog_ctxt_null(struct obd_device *obd, int index) in llog_ctxt_null() argument 440 return llog_group_ctxt_null(&obd->obd_olg, index); in llog_ctxt_null()
|
D | lustre_sec.h | 299 enum lustre_sec_part sptlrpc_target_sec_part(struct obd_device *obd); 349 void sptlrpc_conf_client_adapt(struct obd_device *obd); 1093 void sptlrpc_target_update_exp_flavor(struct obd_device *obd,
|
D | lustre_net.h | 2863 struct obd_export **exp, struct obd_device *obd, 2895 int ptlrpc_obd_ping(struct obd_device *obd); 2951 void ptlrpc_lprocfs_register_obd(struct obd_device *obd); 2952 void ptlrpc_lprocfs_unregister_obd(struct obd_device *obd); 2955 static inline void ptlrpc_lprocfs_register_obd(struct obd_device *obd) {} in ptlrpc_lprocfs_register_obd() argument 2956 static inline void ptlrpc_lprocfs_unregister_obd(struct obd_device *obd) {} in ptlrpc_lprocfs_unregister_obd() argument
|
D | lustre_fid.h | 479 int client_fid_init(struct obd_device *obd, struct obd_export *exp, 481 int client_fid_fini(struct obd_device *obd);
|
D | lustre_dlm.h | 1276 ldlm_namespace_new(struct obd_device *obd, char *name,
|
/linux-4.1.27/drivers/staging/lustre/lustre/lmv/ |
D | lmv_obd.c | 80 struct obd_device *obd; in lmv_set_mdc_active() local 105 obd = class_exp2obd(tgt->ltd_exp); in lmv_set_mdc_active() 106 if (obd == NULL) { in lmv_set_mdc_active() 112 obd->obd_name, obd->obd_uuid.uuid, obd->obd_minor, obd, in lmv_set_mdc_active() 113 obd->obd_type->typ_name, i); in lmv_set_mdc_active() 114 LASSERT(strcmp(obd->obd_type->typ_name, LUSTRE_MDC_NAME) == 0); in lmv_set_mdc_active() 117 CDEBUG(D_INFO, "OBD %p already %sactive!\n", obd, in lmv_set_mdc_active() 122 CDEBUG(D_INFO, "Marking OBD %p %sactive\n", obd, in lmv_set_mdc_active() 138 static int lmv_notify(struct obd_device *obd, struct obd_device *watched, in lmv_notify() argument 142 struct lmv_obd *lmv = &obd->u.lmv; in lmv_notify() [all …]
|
D | lmv_intent.c | 61 struct obd_device *obd = exp->exp_obd; in lmv_intent_remote() local 62 struct lmv_obd *lmv = &obd->u.lmv; in lmv_intent_remote() 165 struct obd_device *obd = exp->exp_obd; in lmv_intent_open() local 166 struct lmv_obd *lmv = &obd->u.lmv; in lmv_intent_open() 248 struct obd_device *obd = exp->exp_obd; in lmv_intent_lookup() local 249 struct lmv_obd *lmv = &obd->u.lmv; in lmv_intent_lookup() 298 struct obd_device *obd = exp->exp_obd; in lmv_intent_lock() local 308 rc = lmv_check_connect(obd); in lmv_intent_lock()
|
D | lmv_internal.h | 51 int lmv_check_connect(struct obd_device *obd);
|
/linux-4.1.27/drivers/staging/lustre/lustre/obdclass/linux/ |
D | linux-module.c | 245 struct obd_device *obd; in obd_proc_health_seq_show() local 247 obd = class_num2obd(i); in obd_proc_health_seq_show() 248 if (obd == NULL || !obd->obd_attached || !obd->obd_set_up) in obd_proc_health_seq_show() 251 LASSERT(obd->obd_magic == OBD_DEVICE_MAGIC); in obd_proc_health_seq_show() 252 if (obd->obd_stopping) in obd_proc_health_seq_show() 255 class_incref(obd, __func__, current); in obd_proc_health_seq_show() 258 if (obd_health_check(NULL, obd)) { in obd_proc_health_seq_show() 260 obd->obd_name); in obd_proc_health_seq_show() 263 class_decref(obd, __func__, current); in obd_proc_health_seq_show() 368 struct obd_device *obd = class_num2obd((int)index); in obd_device_list_seq_show() local [all …]
|
/linux-4.1.27/drivers/staging/lustre/lustre/osc/ |
D | lproc_osc.c | 242 struct obd_device *obd = ((struct seq_file *)file->private_data)->private; in osc_cur_grant_bytes_seq_write() local 243 struct client_obd *cli = &obd->u.cli; in osc_cur_grant_bytes_seq_write() 247 if (obd == NULL) in osc_cur_grant_bytes_seq_write() 262 LPROCFS_CLIMP_CHECK(obd); in osc_cur_grant_bytes_seq_write() 265 LPROCFS_CLIMP_EXIT(obd); in osc_cur_grant_bytes_seq_write() 287 struct obd_device *obd = m->private; in osc_grant_shrink_interval_seq_show() local 289 if (obd == NULL) in osc_grant_shrink_interval_seq_show() 291 seq_printf(m, "%d\n", obd->u.cli.cl_grant_shrink_interval); in osc_grant_shrink_interval_seq_show() 299 struct obd_device *obd = ((struct seq_file *)file->private_data)->private; in osc_grant_shrink_interval_seq_write() local 302 if (obd == NULL) in osc_grant_shrink_interval_seq_write() [all …]
|
D | osc_request.c | 100 int osc_cleanup(struct obd_device *obd); 2131 struct obd_device *obd = class_exp2obd(exp); in osc_find_cbdata() local 2135 rc = ldlm_resource_iterate(obd->obd_namespace, &res_id, replace, data); in osc_find_cbdata() 2255 struct obd_device *obd = exp->exp_obd; in osc_enqueue_base() local 2291 mode = ldlm_lock_match(obd->obd_namespace, *flags | match_lvb, res_id, in osc_enqueue_base() 2396 struct obd_device *obd = exp->exp_obd; in osc_match_base() local 2415 rc = ldlm_lock_match(obd->obd_namespace, lflags, in osc_match_base() 2483 struct obd_device *obd = class_exp2obd(exp); in osc_statfs_async() local 2494 req = ptlrpc_request_alloc(obd->u.cli.cl_import, &RQF_OST_STATFS); in osc_statfs_async() 2525 struct obd_device *obd = class_exp2obd(exp); in osc_statfs() local [all …]
|
D | osc_dev.c | 217 struct obd_device *obd; in osc_device_alloc() local 230 obd = class_name2obd(lustre_cfg_string(cfg, 0)); in osc_device_alloc() 231 LASSERT(obd != NULL); in osc_device_alloc() 232 rc = osc_setup(obd, cfg); in osc_device_alloc() 237 od->od_exp = obd->obd_self_export; in osc_device_alloc()
|
D | osc_internal.h | 129 int osc_process_config_base(struct obd_device *obd, struct lustre_cfg *cfg); 136 int osc_cleanup(struct obd_device *obd); 137 int osc_setup(struct obd_device *obd, struct lustre_cfg *lcfg); 192 int osc_quota_setup(struct obd_device *obd); 193 int osc_quota_cleanup(struct obd_device *obd);
|
D | osc_quota.c | 205 int osc_quota_setup(struct obd_device *obd) in osc_quota_setup() argument 207 struct client_obd *cli = &obd->u.cli; in osc_quota_setup() 233 int osc_quota_cleanup(struct obd_device *obd) in osc_quota_cleanup() argument 235 struct client_obd *cli = &obd->u.cli; in osc_quota_cleanup()
|
/linux-4.1.27/drivers/staging/lustre/lustre/mgc/ |
D | mgc_request.c | 189 struct config_llog_data *do_config_log_add(struct obd_device *obd, in do_config_log_add() argument 218 cld->cld_mgcexp = class_export_get(obd->obd_self_export); in do_config_log_add() 222 cld->cld_cfg.cfg_obdname = obd->obd_name; in do_config_log_add() 237 rc = mgc_process_log(obd, cld); in do_config_log_add() 245 static struct config_llog_data *config_recover_log_add(struct obd_device *obd, in config_recover_log_add() argument 275 cld = do_config_log_add(obd, logname, CONFIG_T_RECOVER, &lcfg, sb); in config_recover_log_add() 279 static struct config_llog_data *config_params_log_add(struct obd_device *obd, in config_params_log_add() argument 287 cld = do_config_log_add(obd, PARAMS_FILENAME, CONFIG_T_PARAMS, in config_params_log_add() 298 static int config_log_add(struct obd_device *obd, char *logname, in config_log_add() argument 327 sptlrpc_cld = do_config_log_add(obd, seclogname, in config_log_add() [all …]
|
/linux-4.1.27/drivers/staging/lustre/lustre/lov/ |
D | lov_obd.c | 65 static void lov_getref(struct obd_device *obd) in lov_getref() argument 67 struct lov_obd *lov = &obd->u.lov; in lov_getref() 76 static void __lov_del_obd(struct obd_device *obd, struct lov_tgt_desc *tgt); 78 static void lov_putref(struct obd_device *obd) in lov_putref() argument 80 struct lov_obd *lov = &obd->u.lov; in lov_putref() 108 __lov_del_obd(obd, tgt); in lov_putref() 115 static int lov_set_osc_active(struct obd_device *obd, struct obd_uuid *uuid, 117 static int lov_notify(struct obd_device *obd, struct obd_device *watched, 122 int lov_connect_obd(struct obd_device *obd, __u32 index, int activate, in lov_connect_obd() argument 125 struct lov_obd *lov = &obd->u.lov; in lov_connect_obd() [all …]
|
D | lov_internal.h | 191 int qos_add_tgt(struct obd_device *obd, __u32 index); 192 int qos_del_tgt(struct obd_device *obd, struct lov_tgt_desc *tgt); 197 void qos_statfs_update(struct obd_device *obd, __u64 max_age, int wait); 222 int lov_prep_statfs_set(struct obd_device *obd, struct obd_info *oinfo, 226 int lov_fini_statfs(struct obd_device *obd, struct obd_statfs *osfs, 238 int lov_connect_obd(struct obd_device *obd, __u32 index, int activate, 240 int lov_setup(struct obd_device *obd, struct lustre_cfg *lcfg); 241 int lov_process_config_base(struct obd_device *obd, struct lustre_cfg *lcfg, 243 int lov_del_target(struct obd_device *obd, __u32 index, 291 int lov_pool_new(struct obd_device *obd, char *poolname); [all …]
|
D | lov_pool.c | 424 int lov_pool_new(struct obd_device *obd, char *poolname) in lov_pool_new() argument 430 lov = &(obd->u.lov); in lov_pool_new() 441 new_pool->pool_lobd = obd; in lov_pool_new() 472 spin_lock(&obd->obd_dev_lock); in lov_pool_new() 475 spin_unlock(&obd->obd_dev_lock); in lov_pool_new() 491 spin_lock(&obd->obd_dev_lock); in lov_pool_new() 494 spin_unlock(&obd->obd_dev_lock); in lov_pool_new() 505 int lov_pool_del(struct obd_device *obd, char *poolname) in lov_pool_del() argument 510 lov = &(obd->u.lov); in lov_pool_del() 523 spin_lock(&obd->obd_dev_lock); in lov_pool_del() [all …]
|
D | lov_dev.c | 397 struct obd_device *obd = dev->ld_obd; in lov_cl_add_target() local 404 obd_getref(obd); in lov_cl_add_target() 406 tgt = obd->u.lov.lov_tgts[index]; in lov_cl_add_target() 433 obd_putref(obd); in lov_cl_add_target() 440 struct obd_device *obd = d->ld_obd; in lov_process_config() local 446 obd_getref(obd); in lov_process_config() 463 obd_putref(obd); in lov_process_config() 478 struct obd_device *obd; in lov_device_alloc() local 494 obd = class_name2obd(lustre_cfg_string(cfg, 0)); in lov_device_alloc() 495 LASSERT(obd != NULL); in lov_device_alloc() [all …]
|
D | lov_request.c | 569 int lov_fini_statfs(struct obd_device *obd, struct obd_statfs *osfs, in lov_fini_statfs() argument 573 __u32 expected_stripes = lov_get_stripecnt(&obd->u.lov, in lov_fini_statfs() 580 spin_lock(&obd->obd_osfs_lock); in lov_fini_statfs() 581 memcpy(&obd->obd_osfs, osfs, sizeof(*osfs)); in lov_fini_statfs() 582 obd->obd_osfs_age = cfs_time_current_64(); in lov_fini_statfs() 583 spin_unlock(&obd->obd_osfs_lock); in lov_fini_statfs() 712 int lov_prep_statfs_set(struct obd_device *obd, struct obd_info *oinfo, in lov_prep_statfs_set() argument 716 struct lov_obd *lov = &obd->u.lov; in lov_prep_statfs_set() 724 set->set_obd = obd; in lov_prep_statfs_set()
|
D | lov_pack.c | 134 struct obd_device *obd = class_exp2obd(exp); in lov_packmd() local 135 struct lov_obd *lov = &obd->u.lov; in lov_packmd() 357 struct obd_device *obd = class_exp2obd(exp); in lov_unpackmd() local 358 struct lov_obd *lov = &obd->u.lov; in lov_unpackmd()
|
/linux-4.1.27/drivers/staging/lustre/lustre/ptlrpc/ |
D | pinger.c | 75 int ptlrpc_obd_ping(struct obd_device *obd) in ptlrpc_obd_ping() argument 80 req = ptlrpc_prep_ping(obd->u.cli.cl_import); in ptlrpc_obd_ping() 556 struct obd_device *obd; in ping_evictor_wake() local 565 obd = class_exp2obd(exp); in ping_evictor_wake() 566 if (list_empty(&obd->obd_evict_list)) { in ping_evictor_wake() 567 class_incref(obd, "evictor", obd); in ping_evictor_wake() 568 list_add(&obd->obd_evict_list, &pet_list); in ping_evictor_wake() 578 struct obd_device *obd; in ping_evictor_main() local 599 obd = list_entry(pet_list.next, struct obd_device, in ping_evictor_main() 606 obd->obd_name, expire_time); in ping_evictor_main() [all …]
|
D | lproc_ptlrpc.c | 1174 void ptlrpc_lprocfs_unregister_obd(struct obd_device *obd) in ptlrpc_lprocfs_unregister_obd() argument 1176 if (obd->obd_svc_procroot) in ptlrpc_lprocfs_unregister_obd() 1177 lprocfs_remove(&obd->obd_svc_procroot); in ptlrpc_lprocfs_unregister_obd() 1179 if (obd->obd_svc_stats) in ptlrpc_lprocfs_unregister_obd() 1180 lprocfs_free_stats(&obd->obd_svc_stats); in ptlrpc_lprocfs_unregister_obd() 1190 struct obd_device *obd = ((struct seq_file *)file->private_data)->private; in lprocfs_wr_evict_client() local 1216 class_incref(obd, __func__, current); in lprocfs_wr_evict_client() 1219 obd_export_evict_by_nid(obd, tmpbuf + 4); in lprocfs_wr_evict_client() 1221 obd_export_evict_by_uuid(obd, tmpbuf + 5); in lprocfs_wr_evict_client() 1223 obd_export_evict_by_uuid(obd, tmpbuf); in lprocfs_wr_evict_client() [all …]
|
D | sec_config.c | 72 enum lustre_sec_part sptlrpc_target_sec_part(struct obd_device *obd) in sptlrpc_target_sec_part() argument 74 const char *type = obd->obd_type->typ_name; in sptlrpc_target_sec_part() 83 CERROR("unknown target %p(%s)\n", obd, type); in sptlrpc_target_sec_part() 861 void sptlrpc_conf_client_adapt(struct obd_device *obd) in sptlrpc_conf_client_adapt() argument 865 LASSERT(strcmp(obd->obd_type->typ_name, LUSTRE_MDC_NAME) == 0 || in sptlrpc_conf_client_adapt() 866 strcmp(obd->obd_type->typ_name, LUSTRE_OSC_NAME) == 0); in sptlrpc_conf_client_adapt() 867 CDEBUG(D_SEC, "obd %s\n", obd->u.cli.cl_target_uuid.uuid); in sptlrpc_conf_client_adapt() 870 down_read(&obd->u.cli.cl_sem); in sptlrpc_conf_client_adapt() 872 imp = obd->u.cli.cl_import; in sptlrpc_conf_client_adapt() 881 up_read(&obd->u.cli.cl_sem); in sptlrpc_conf_client_adapt()
|
D | niobuf.c | 496 struct obd_device *obd = request->rq_import->imp_obd; in ptl_send_rpc() local 510 if (unlikely(obd != NULL && obd->obd_fail)) { in ptl_send_rpc() 512 obd->obd_name); in ptl_send_rpc() 630 if (obd != NULL && obd->obd_svc_stats != NULL) in ptl_send_rpc() 631 lprocfs_counter_add(obd->obd_svc_stats, PTLRPC_REQACTIVE_CNTR, in ptl_send_rpc()
|
D | recover.c | 268 struct obd_device *obd = imp->imp_obd; in ptlrpc_set_import_active() local 271 LASSERT(obd); in ptlrpc_set_import_active()
|
D | sec_null.c | 84 struct obd_device *obd = req->rq_import->imp_obd; in null_ctx_sign() local 86 obd->u.cli.cl_sp_me); in null_ctx_sign()
|
D | import.c | 391 struct obd_device *obd = imp->imp_obd; in ptlrpc_activate_import() local 401 obd_import_event(obd, imp, IMP_EVENT_ACTIVE); in ptlrpc_activate_import() 634 struct obd_device *obd = imp->imp_obd; in ptlrpc_connect_import() local 641 obd->obd_uuid.uuid, in ptlrpc_connect_import() 692 rc = obd_reconnect(NULL, imp->imp_obd->obd_self_export, obd, in ptlrpc_connect_import() 693 &obd->obd_uuid, &imp->imp_connect_data, NULL); in ptlrpc_connect_import()
|
D | service.c | 1103 struct obd_device *obd = req->rq_export->exp_obd; in ptlrpc_check_req() local 1114 if (unlikely(obd == NULL || obd->obd_fail)) { in ptlrpc_check_req() 1120 req, (obd != NULL) ? obd->obd_name : "unknown"); in ptlrpc_check_req() 1124 !obd->obd_recovering) { in ptlrpc_check_req() 1130 !obd->obd_recovering) { in ptlrpc_check_req()
|
D | sec.c | 1926 void sptlrpc_target_update_exp_flavor(struct obd_device *obd, in sptlrpc_target_update_exp_flavor() argument 1932 LASSERT(obd); in sptlrpc_target_update_exp_flavor() 1934 spin_lock(&obd->obd_dev_lock); in sptlrpc_target_update_exp_flavor() 1936 list_for_each_entry(exp, &obd->obd_exports, exp_obd_chain) { in sptlrpc_target_update_exp_flavor() 1962 spin_unlock(&obd->obd_dev_lock); in sptlrpc_target_update_exp_flavor()
|
D | client.c | 1207 struct obd_device *obd = req->rq_import->imp_obd; in after_reply() local 1212 LASSERT(obd != NULL); in after_reply() 1291 if (obd->obd_svc_stats != NULL) { in after_reply() 1292 lprocfs_counter_add(obd->obd_svc_stats, PTLRPC_REQWAIT_CNTR, in after_reply()
|
/linux-4.1.27/drivers/staging/lustre/lustre/mdc/ |
D | mdc_request.c | 61 static int mdc_cleanup(struct obd_device *obd); 864 struct obd_device *obd = class_exp2obd(exp); in mdc_close() local 879 obd->obd_name, PFID(&op_data->op_fid1), rc); in mdc_close() 926 obd->u.cli.cl_default_mds_easize); in mdc_close() 928 obd->u.cli.cl_default_mds_cookiesize); in mdc_close() 932 mdc_get_rpc_lock(obd->u.cli.cl_close_lock, NULL); in mdc_close() 934 mdc_put_rpc_lock(obd->u.cli.cl_close_lock, NULL); in mdc_close() 983 struct obd_device *obd = class_exp2obd(exp); in mdc_done_writing() local 1016 mdc_get_rpc_lock(obd->u.cli.cl_close_lock, NULL); in mdc_done_writing() 1018 mdc_put_rpc_lock(obd->u.cli.cl_close_lock, NULL); in mdc_done_writing() [all …]
|
D | mdc_reint.c | 110 struct obd_device *obd = exp->exp_obd; in mdc_setattr() local 144 rpc_lock = obd->u.cli.cl_rpc_lock; in mdc_setattr() 322 struct obd_device *obd = class_exp2obd(exp); in mdc_unlink() local 359 obd->u.cli.cl_default_mds_easize); in mdc_unlink() 361 obd->u.cli.cl_default_mds_cookiesize); in mdc_unlink() 366 rc = mdc_reint(req, obd->u.cli.cl_rpc_lock, LUSTRE_IMP_FULL); in mdc_unlink() 376 struct obd_device *obd = exp->exp_obd; in mdc_link() local 410 rc = mdc_reint(req, obd->u.cli.cl_rpc_lock, LUSTRE_IMP_FULL); in mdc_link() 423 struct obd_device *obd = exp->exp_obd; in mdc_rename() local 472 obd->u.cli.cl_default_mds_easize); in mdc_rename() [all …]
|
D | lproc_mdc.c | 90 struct obd_device *obd = in mdc_kuc_write() local 122 obd_uuid2fsname(hal->hal_fsname, obd->obd_name, MTI_NAME_MAXLEN); in mdc_kuc_write()
|
D | mdc_locks.c | 178 struct obd_device *obd = class_exp2obd(exp); in mdc_cancel_unused() local 182 rc = ldlm_cli_cancel_unused_resource(obd->obd_namespace, &res_id, in mdc_cancel_unused() 504 struct obd_device *obd = class_exp2obd(exp); in mdc_intent_layout_pack() local 533 obd->u.cli.cl_default_mds_easize); in mdc_intent_layout_pack()
|
/linux-4.1.27/drivers/staging/lustre/lustre/ldlm/ |
D | ldlm_lib.c | 492 struct obd_device *obd, struct obd_uuid *cluuid, in client_connect_import() argument 495 struct client_obd *cli = &obd->u.cli; in client_connect_import() 508 rc = class_connect(&conn, obd, cluuid); in client_connect_import() 515 LASSERT(obd->obd_namespace); in client_connect_import() 559 struct obd_device *obd = class_exp2obd(exp); in client_disconnect_export() local 564 if (!obd) { in client_disconnect_export() 570 cli = &obd->u.cli; in client_disconnect_export() 574 CDEBUG(D_INFO, "disconnect %s - %d\n", obd->obd_name, in client_disconnect_export() 579 obd->obd_name); in client_disconnect_export() 602 if (obd->obd_namespace != NULL) { in client_disconnect_export() [all …]
|
D | ldlm_pool.c | 310 struct obd_device *obd; in ldlm_srv_pool_push_slv() local 319 obd = ldlm_pl2ns(pl)->ns_obd; in ldlm_srv_pool_push_slv() 320 LASSERT(obd != NULL); in ldlm_srv_pool_push_slv() 321 write_lock(&obd->obd_pool_lock); in ldlm_srv_pool_push_slv() 322 obd->obd_pool_slv = pl->pl_server_lock_volume; in ldlm_srv_pool_push_slv() 323 write_unlock(&obd->obd_pool_lock); in ldlm_srv_pool_push_slv() 433 struct obd_device *obd; in ldlm_srv_pool_setup() local 435 obd = ldlm_pl2ns(pl)->ns_obd; in ldlm_srv_pool_setup() 436 LASSERT(obd != NULL && obd != LP_POISON); in ldlm_srv_pool_setup() 437 LASSERT(obd->obd_type != LP_POISON); in ldlm_srv_pool_setup() [all …]
|
D | ldlm_request.c | 95 struct obd_device *obd; in ldlm_expired_completion_wait() local 120 obd = lock->l_conn_export->exp_obd; in ldlm_expired_completion_wait() 121 imp = obd->u.cli.cl_import; in ldlm_expired_completion_wait() 127 obd2cli_tgt(obd), imp->imp_connection->c_remote_uuid.uuid); in ldlm_expired_completion_wait() 224 struct obd_device *obd; in ldlm_completion_ast() local 245 obd = class_exp2obd(lock->l_conn_export); in ldlm_completion_ast() 248 if (obd != NULL) in ldlm_completion_ast() 249 imp = obd->u.cli.cl_import; in ldlm_completion_ast() 1258 struct obd_device *obd; in ldlm_cli_update_pool() local 1286 obd = req->rq_import->imp_obd; in ldlm_cli_update_pool() [all …]
|
D | ldlm_flock.c | 587 struct obd_device *obd; in ldlm_flock_completion_ast() local 627 obd = class_exp2obd(lock->l_conn_export); in ldlm_flock_completion_ast() 630 if (NULL != obd) in ldlm_flock_completion_ast() 631 imp = obd->u.cli.cl_import; in ldlm_flock_completion_ast()
|
D | ldlm_resource.c | 562 struct ldlm_namespace *ldlm_namespace_new(struct obd_device *obd, char *name, in ldlm_namespace_new() argument 574 LASSERT(obd != NULL); in ldlm_namespace_new() 616 ns->ns_obd = obd; in ldlm_namespace_new()
|
D | ldlm_lockd.c | 486 struct obd_device *obd = req->rq_export->exp_obd; in ldlm_handle_setinfo() local 492 DEBUG_REQ(D_HSM, req, "%s: handle setinfo\n", obd->obd_name); in ldlm_handle_setinfo()
|
/linux-4.1.27/drivers/staging/lustre/lustre/llite/ |
D | llite_lib.c | 157 struct obd_device *obd; in client_common_fill_super() local 168 obd = class_name2obd(md); in client_common_fill_super() 169 if (!obd) { in client_common_fill_super() 252 err = obd_connect(NULL, &sbi->ll_md_exp, obd, &sbi->ll_sb_uuid, in client_common_fill_super() 386 obd = class_name2obd(dt); in client_common_fill_super() 387 if (!obd) { in client_common_fill_super() 429 obd->obd_upcall.onu_owner = &sbi->ll_lco; in client_common_fill_super() 430 obd->obd_upcall.onu_upcall = cl_ocd_update; in client_common_fill_super() 434 err = obd_connect(NULL, &sbi->ll_dt_exp, obd, &sbi->ll_sb_uuid, data, in client_common_fill_super() 1012 struct obd_device *obd; in ll_put_super() local [all …]
|
D | lproc_llite.c | 970 struct obd_device *obd; in lprocfs_register_mountpoint() local 1068 obd = class_name2obd(mdc); in lprocfs_register_mountpoint() 1070 LASSERT(obd != NULL); in lprocfs_register_mountpoint() 1071 LASSERT(obd->obd_magic == OBD_DEVICE_MAGIC); in lprocfs_register_mountpoint() 1072 LASSERT(obd->obd_type->typ_name != NULL); in lprocfs_register_mountpoint() 1074 dir = proc_mkdir(obd->obd_type->typ_name, sbi->ll_proc_root); in lprocfs_register_mountpoint() 1082 err = lprocfs_add_vars(dir, lvars, obd); in lprocfs_register_mountpoint() 1088 err = lprocfs_add_vars(dir, lvars, obd); in lprocfs_register_mountpoint() 1093 obd = class_name2obd(osc); in lprocfs_register_mountpoint() 1095 LASSERT(obd != NULL); in lprocfs_register_mountpoint() [all …]
|
D | llite_internal.h | 1030 struct obd_device *obd = sbi->ll_md_exp->exp_obd; in sbi2mdc() local 1031 if (obd == NULL) in sbi2mdc() 1033 return &obd->u.cli; in sbi2mdc()
|
D | file.c | 134 struct obd_device *obd = class_exp2obd(exp); in ll_close_inode_openhandle() local 138 if (obd == NULL) { in ll_close_inode_openhandle()
|
/linux-4.1.27/drivers/staging/lustre/lustre/fid/ |
D | fid_request.c | 501 int client_fid_init(struct obd_device *obd, in client_fid_init() argument 504 struct client_obd *cli = &obd->u.cli; in client_fid_init() 518 snprintf(prefix, MAX_OBD_NAME + 5, "cli-%s", obd->obd_name); in client_fid_init() 534 int client_fid_fini(struct obd_device *obd) in client_fid_fini() argument 536 struct client_obd *cli = &obd->u.cli; in client_fid_fini()
|
/linux-4.1.27/drivers/staging/lustre/lustre/obdecho/ |
D | echo_client.c | 115 static inline struct echo_device *obd2echo_dev(const struct obd_device *obd) in obd2echo_dev() argument 117 return cl2echo_dev(lu2cl_dev(obd->obd_lu_dev)); in obd2echo_dev() 697 struct obd_device *obd = NULL; /* to keep compiler happy */ in echo_device_alloc() local 719 obd = class_name2obd(lustre_cfg_string(cfg, 0)); in echo_device_alloc() 720 LASSERT(obd != NULL); in echo_device_alloc() 744 rc = echo_client_setup(env, obd, cfg); in echo_device_alloc() 748 ed->ed_ec = &obd->u.echo_client; in echo_device_alloc() 790 rc2 = echo_client_cleanup(obd); in echo_device_alloc() 793 obd->obd_name, rc2); in echo_device_alloc() 1754 struct obd_device *obd = class_exp2obd(exp); in echo_client_brw_ioctl() local [all …]
|
/linux-4.1.27/drivers/staging/lustre/lustre/ |
D | Kconfig | 35 int "Lustre obd max ioctl buffer bytes (default 8KB)"
|
/linux-4.1.27/Documentation/ |
D | devices.txt | 2610 0 = /dev/obd0 First obd control device 2611 1 = /dev/obd1 Second obd control device 2614 See ftp://ftp.lustre.org/pub/obd for code and information.
|