#include "lib/trace.h"
#include "lib/errno.h"
#include "lib/memory.h"
#include "lib/misc.h"
#include "lib/finject.h"
#include "rpc/item.h"
#include "rpc/rpc_opcodes.h"
#include "rpc/rpc.h"
#include "rm/rm.h"
#include "rm/rm_fops.h"
#include "rm/rm_foms.h"
#include "rm/rm_fops_xc.h"
#include "rm/rm_service.h"
#include "rm/rm_internal.h"
Go to the source code of this file.
|
static void | rm_reply_process (struct m0_rpc_item *item) |
|
static void | rm_borrow_ast (struct m0_sm_group *grp, struct m0_sm_ast *ast) |
|
static void | rm_revoke_ast (struct m0_sm_group *grp, struct m0_sm_ast *ast) |
|
static void | rm_cancel_ast (struct m0_sm_group *grp, struct m0_sm_ast *ast) |
|
static int | rm_out_create (struct rm_out **out, enum m0_rm_outgoing_type otype, struct m0_rm_remote *other, struct m0_rm_credit *credit) |
|
static void | rm_out_release (struct rm_out *out) |
|
static void | rm_fop_release (struct m0_ref *ref) |
|
static void | rm_out_destroy (struct rm_out *out) |
|
static int | fop_common_fill (struct rm_out *outreq, struct m0_rm_incoming *in, struct m0_rm_credit *credit, struct m0_cookie *cookie, struct m0_fop_type *fopt, size_t offset, void **data) |
|
static int | borrow_fop_fill (struct rm_out *outreq, struct m0_rm_incoming *in, struct m0_rm_credit *credit) |
|
static int | revoke_fop_fill (struct rm_out *outreq, struct m0_rm_incoming *in, struct m0_rm_loan *loan, struct m0_rm_remote *other, struct m0_rm_credit *credit) |
|
static int | cancel_fop_fill (struct rm_out *outreq, struct m0_rm_loan *loan) |
|
static void | outreq_fini (struct rm_out *outreq, int rc) |
|
M0_INTERNAL void | m0_rm_outgoing_send (struct m0_rm_outgoing *outgoing) |
|
static void | outgoing_queue (enum m0_rm_outgoing_type otype, struct m0_rm_owner *owner, struct rm_out *outreq, struct m0_rm_incoming *in, struct m0_rm_remote *other) |
|
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) |
|
M0_INTERNAL void | m0_rm_fop_fini (void) |
|
M0_INTERNAL int | m0_rm_fop_init (void) |
|
◆ M0_TRACE_SUBSYSTEM
#define M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_RM |
◆ borrow_fop_fill()
◆ cancel_fop_fill()
◆ fop_common_fill()
◆ m0_rm_outgoing_send()
M0_INTERNAL void m0_rm_outgoing_send |
( |
struct m0_rm_outgoing * |
outgoing | ) |
|
◆ m0_rm_request_out()
Constructs and sends out an outgoing request.
Allocates m0_rm_outgoing, adds a pin from "in" to the outgoing request. Constructs and sends an outgoing request fop. Arranges m0_rm_outgoing_complete() to be called on fop reply or timeout.
Definition at line 354 of file rm_fops.c.
◆ outgoing_queue()
◆ outreq_fini()
static void outreq_fini |
( |
struct rm_out * |
outreq, |
|
|
int |
rc |
|
) |
| |
|
static |
◆ revoke_fop_fill()
◆ rm_borrow_ast()
◆ rm_cancel_ast()
◆ rm_fop_release()
static void rm_fop_release |
( |
struct m0_ref * |
ref | ) |
|
|
static |
◆ rm_out_create()
◆ rm_out_destroy()
static void rm_out_destroy |
( |
struct rm_out * |
out | ) |
|
|
static |
◆ rm_out_release()
static void rm_out_release |
( |
struct rm_out * |
out | ) |
|
|
static |
◆ rm_reply_process()
static void rm_reply_process |
( |
struct m0_rpc_item * |
item | ) |
|
|
static |
Forward declaration.
Definition at line 526 of file rm_fops.c.
◆ rm_revoke_ast()
◆ rm_request_rpc_ops
Initial value:= {
}
static void rm_reply_process(struct m0_rpc_item *item)
Definition at line 60 of file rm_fops.c.