25 #ifndef __MOTR_REQH_REQH_H__ 26 #define __MOTR_REQH_REQH_H__ 262 #define M0_REQH_INIT(reqh, ...) \ 263 m0_reqh_init((reqh), &(const struct m0_reqh_init_args) { \ 293 uint64_t
key,
bool mkfs,
bool force,
M0_INTERNAL void m0_reqh_be_fini(struct m0_reqh *reqh)
struct m0_be_seg * rhia_db
M0_INTERNAL void m0_reqh_services_terminate(struct m0_reqh *reqh)
struct m0_ha_domain rh_hadom
struct m0_pools_common * rhia_pc
struct m0_mdstore * rh_mdstore
struct m0_chan rh_conf_cache_ready_async
M0_INTERNAL void m0_reqh_layouts_cleanup(struct m0_reqh *reqh)
M0_INTERNAL int m0_reqh_fop_handle(struct m0_reqh *reqh, struct m0_fop *fop)
enum m0_trace_level level
struct m0_chan rh_conf_cache_ready
M0_INTERNAL void m0_reqhs_fini(void)
M0_INTERNAL void m0_reqh_fini(struct m0_reqh *reqh)
struct m0_rwlock rh_rwlock
struct m0_reqh_service * rh_rpc_service
M0_INTERNAL int m0_reqh_addb2_init(struct m0_reqh *reqh, const char *location, uint64_t key, bool mkfs, bool force, m0_bcount_t size)
M0_INTERNAL int m0_reqh_addb2_submit(struct m0_reqh *reqh, struct m0_addb2_trace_obj *tobj)
M0_INTERNAL void m0_reqh_shutdown_wait(struct m0_reqh *reqh)
M0_INTERNAL struct m0_fid * m0_reqh2profile(struct m0_reqh *reqh)
M0_INTERNAL bool m0_reqh_invariant(const struct m0_reqh *reqh)
struct m0_mutex rh_guard_async
M0_INTERNAL struct m0_confc * m0_reqh2confc(struct m0_reqh *reqh)
M0_INTERNAL int m0_reqh_conf_setup(struct m0_reqh *reqh, struct m0_confc_args *args)
M0_INTERNAL struct m0_rpc_session * m0_reqh_mdpool_service_index_to_session(const struct m0_reqh *reqh, const struct m0_fid *gob_fid, uint32_t index)
M0_INTERNAL int m0_reqh_init(struct m0_reqh *reqh, const struct m0_reqh_init_args *reqh_args)
struct m0_tl rh_rpc_machines
M0_INTERNAL void m0_reqh_shutdown(struct m0_reqh *reqh)
M0_INTERNAL int m0_reqh_mdpool_layout_build(struct m0_reqh *reqh)
M0_INTERNAL uint64_t m0_reqh_nr_localities(const struct m0_reqh *reqh)
M0_INTERNAL int m0_reqhs_init(void)
M0_TL_DESCR_DECLARE(m0_reqh_svc, M0_EXTERN)
struct m0_layout_domain rh_ldom
struct m0_mdstore * rhia_mdstore
M0_INTERNAL void m0_reqh_post_storage_fini_svcs_stop(struct m0_reqh *reqh)
M0_INTERNAL int m0_reqh_fop_allow(struct m0_reqh *reqh, struct m0_fop *fop)
M0_LOCKERS_DECLARE(M0_EXTERN, m0_reqh, 256)
M0_INTERNAL void m0_reqh_idle_wait(struct m0_reqh *reqh)
struct m0_sm_ast rh_conf_cache_ast
M0_INTERNAL int m0_reqh_state_get(struct m0_reqh *reqh)
M0_BOB_DECLARE(M0_EXTERN, m0_reqh_service)
M0_INTERNAL void m0_reqh_start(struct m0_reqh *reqh)
M0_TL_DECLARE(m0_reqh_svc, M0_INTERNAL, struct m0_reqh_service)
struct m0_chan rh_conf_cache_exp
struct m0_reqh_lockers rh_lockers
struct m0_sm_group rh_sm_grp
struct m0_pools_common * rh_pools
M0_INTERNAL void m0_reqh_pre_storage_fini_svcs_stop(struct m0_reqh *reqh)
static struct m0_fop * fop
M0_INTERNAL void m0_reqh_idle_wait_for(struct m0_reqh *reqh, struct m0_reqh_service *service)
struct m0_be_seg * rh_beseg
struct m0_semaphore rh_addb2_stor_idle
static struct m0_be_seg * seg
M0_INTERNAL void m0_reqh_services_prepare_to_stop(struct m0_reqh *reqh, unsigned level)
struct m0_semaphore rh_addb2_net_idle
struct m0_rconfc rh_rconfc
struct m0_addb2_storage * rh_addb2_stor
M0_INTERNAL void m0_reqh_addb2_fini(struct m0_reqh *reqh)
M0_INTERNAL int m0_reqh_be_init(struct m0_reqh *reqh, struct m0_be_seg *seg)
M0_INTERNAL int m0_reqh_services_state_count(struct m0_reqh *reqh, int state)
static struct m0_reqh_service * service[REQH_IN_UT_MAX]
struct m0_addb2_net * rh_addb2_net
struct m0_reqh_service_ctx * rh_ha_rsctx
const struct m0_fid * rhia_fid