109 uint64_t rm_fop_flags)
134 uint32_t pins_nr = 0;
157 pi_tlink_del_fini(pin);
158 pr_tlink_del_fini(pin);
183 uint32_t pins_nr = 0;
225 pi_tlink_del_fini(pin);
226 pr_tlink_del_fini(pin);
391 m0_rm_ur_tlink_del_fini(credit);
397 m0_rm_ur_tlink_del_fini(credit);
528 m0_rm_ur_tlink_del_fini(credit);
534 m0_rm_ur_tlink_del_fini(credit);
const struct m0_rm_credit_ops * cr_ops
M0_INTERNAL int m0_rm_request_out(enum m0_rm_outgoing_type otype, struct m0_rm_incoming *in, struct m0_rm_loan *loan, struct m0_rm_credit *credit, struct m0_rm_remote *other)
static void request_param_fini(void)
static void wait_try_flags_validate(uint64_t orig_flags, uint64_t rm_fop_flags)
struct m0_rm_fop_credit br_credit
static void rm_fop_release(struct m0_ref *ref)
static void borrow_fop_validate(struct m0_rm_fop_borrow *bfop)
struct m0_rm_fop_owner rrq_owner
int const char const void size_t int flags
struct m0_rm_fop_req fr_base
struct m0_rm_remote * ro_creditor
struct rm_ut_data rm_test_data
M0_INTERNAL int m0_rm_credit_decode(struct m0_rm_credit *credit, struct m0_buf *buf)
static struct m0_rm_loan * test_loan
struct m0_cookie rl_cookie
M0_INTERNAL const struct m0_bob_type loan_bob
const struct m0_rm_credit_ops rings_credit_ops
const struct m0_rm_incoming_ops rings_incoming_ops
struct m0_rm_owner * rd_owner
void * m0_fop_data(const struct m0_fop *fop)
struct m0_fop_type m0_rm_fop_borrow_rep_fopt
struct m0_rm_fop_credit rrq_credit
M0_INTERNAL void m0_rm_remote_init(struct m0_rm_remote *rem, struct m0_rm_resource *res)
static void revoke_fop_validate(struct m0_rm_fop_revoke *rfop)
static void borrow_request_test(void)
#define container_of(ptr, type, member)
struct m0_rm_credit rin_want
static void borrow_reply_test(void)
int(* cro_copy)(struct m0_rm_credit *dst, const struct m0_rm_credit *self)
static void request_test(enum m0_rm_incoming_type reqtype)
struct m0_rm_credit rd_credit
static struct m0_rpc_item * item
M0_INTERNAL int m0_rm_loan_init(struct m0_rm_loan *loan, const struct m0_rm_credit *credit, struct m0_rm_remote *creditor)
static void rm_req_fop_validate(enum m0_rm_incoming_type reqtype)
static void revoke_request_test(void)
M0_INTERNAL void m0_sm_group_fini(struct m0_sm_group *grp)
M0_INTERNAL int m0_rm_credit_encode(struct m0_rm_credit *credit, struct m0_buf *buf)
struct m0_rm_owner * cr_owner
struct m0_sm_group rm_sm_grp
struct m0_cookie lo_cookie
static void revoke_fop_funcs_test(void)
struct m0_rm_fop_req bo_base
struct m0_rm_credit rl_credit
M0_INTERNAL void m0_ref_get(struct m0_ref *ref)
struct m0_rm_credit * rp_credit
M0_INTERNAL void m0_rm_incoming_init(struct m0_rm_incoming *in, struct m0_rm_owner *owner, enum m0_rm_incoming_type type, enum m0_rm_incoming_policy policy, uint64_t flags)
static void borrow_reply_populate(struct m0_rm_fop_borrow_rep *breply, int err)
void rm_utdata_owner_windup_fini(struct rm_ut_data *data)
M0_INTERNAL void m0_sm_group_init(struct m0_sm_group *grp)
#define bob_of(ptr, type, field, bt)
static void request_param_init(enum m0_rm_incoming_flags flags)
const struct m0_rm_incoming_ops * rin_ops
static void post_revoke_cleanup(struct m0_rpc_item *item, int err)
struct m0_rpc_item * ri_reply
struct m0_pdclust_instance pi
static void reply_test(enum m0_rm_incoming_type reqtype, int err)
#define m0_cookie_of(cookie, type, field)
M0_INTERNAL void m0_cookie_init(struct m0_cookie *cookie, const uint64_t *obj)
struct m0_cookie ow_cookie
M0_INTERNAL void m0_buf_free(struct m0_buf *buf)
void rm_utdata_init(struct rm_ut_data *data, enum obj_type type)
static void borrow_fop_funcs_test(void)
struct m0_fop_type m0_fop_generic_reply_fopt
struct m0_rm_fop_loan fr_loan
static void post_revoke_validate(int err)
M0_INTERNAL void m0_rm_loan_fini(struct m0_rm_loan *loan)
void rm_fop_funcs_test(void)
M0_INTERNAL void m0_rm_credit_init(struct m0_rm_credit *credit, struct m0_rm_owner *owner)
M0_INTERNAL void m0_rm_remote_fini(struct m0_rm_remote *rem)
static void rm_reply_process(struct m0_rpc_item *item)
static void post_borrow_cleanup(struct m0_rpc_item *item, int err)
#define M0_ALLOC_PTR(ptr)
static void revoke_reply_populate(struct m0_fop_generic_reply *rreply, int err)
bool m0_rm_ur_tlist_is_empty(const struct m0_tl *list)
static void post_borrow_validate(int err)
static struct m0_rm_remote * remote
struct m0_tl ro_owned[OWOS_NR]
static struct m0_fop * fop
struct m0_fop * m0_rpc_item_to_fop(const struct m0_rpc_item *item)
static void m0_fi_enable_once(const char *func, const char *tag)
struct m0_rm_incoming rd_in
M0_INTERNAL void m0_rm_owner_unlock(struct m0_rm_owner *owner)
void rings_utdata_ops_set(struct rm_ut_data *data)
struct m0_rm_resource * rd_res
struct m0_cookie rem_cookie
M0_INTERNAL void m0_rm_owner_lock(struct m0_rm_owner *owner)
static struct m0_rpc_machine ut_rm_mach
static struct m0_rpc_item * rm_reply_create(enum m0_rm_incoming_type reqtype, int err)
M0_INTERNAL void m0_rm_credit_fini(struct m0_rm_credit *credit)
struct m0_rpc_machine * ri_rmachine
#define m0_tl_for(name, head, obj)
struct m0_rpc_item f_item
static void revoke_reply_test(void)
struct m0_rm_loan rog_want
struct m0_rm_outgoing ou_req
struct m0_rm_resource * ro_resource
struct m0_fop * m0_fop_alloc(struct m0_fop_type *fopt, void *data, struct m0_rpc_machine *mach)
M0_INTERNAL void m0_rm_outgoing_fini(struct m0_rm_outgoing *out)
#define M0_IMPOSSIBLE(fmt,...)