#include "lib/trace.h"
#include "cas/cas.h"
#include "cas/cas_xc.h"
#include "dtm0/fop.h"
#include "dtm0/fop_xc.h"
#include "dtm0/addb2.h"
#include "dtm0/drlink.h"
#include "dtm0/service.h"
#include "be/dtm0_log.h"
#include "be/queue.h"
#include "fop/fom_generic.h"
#include "lib/assert.h"
#include "lib/errno.h"
#include "lib/memory.h"
#include "lib/misc.h"
#include "reqh/reqh.h"
#include "rpc/rpc_opcodes.h"
Go to the source code of this file.
|
static int | dtm0_emsg_fom_tick (struct m0_fom *fom) |
|
static int | dtm0_pmsg_fom_tick (struct m0_fom *fom) |
|
static int | dtm0_rmsg_fom_tick (struct m0_fom *fom) |
|
static int | dtm0_tmsg_fom_tick (struct m0_fom *fom) |
|
static int | dtm0_fom_create (struct m0_fop *fop, struct m0_fom **out, struct m0_reqh *reqh) |
|
static void | dtm0_fom_fini (struct m0_fom *fom) |
|
static size_t | dtm0_fom_locality (const struct m0_fom *fom) |
|
static int | dtm0_cas_fop_prepare (struct dtm0_req_fop *req, struct m0_fop_type *cas_fopt, struct m0_fop **cas_fop_out) |
|
static int | dtm0_cas_fom_spawn (struct dtm0_fom *dfom, struct m0_fop *cas_fop, void(*on_cas_fom_complete)(struct m0_fom_thralldom *, struct m0_fom *)) |
|
M0_INTERNAL void | m0_dtm0_fop_fini (void) |
|
M0_INTERNAL int | m0_dtm0_fop_init (void) |
|
M0_INTERNAL int | m0_dtm0_logrec_update (struct m0_be_dtm0_log *log, struct m0_be_tx *tx, struct m0_dtm0_tx_desc *txd, struct m0_buf *payload) |
|
M0_INTERNAL int | m0_dtm0_on_committed (struct m0_fom *fom, const struct m0_dtm0_tid *id) |
|
static void | dtm0_cas_done_cb (struct m0_fom_thralldom *thrall, struct m0_fom *serf) |
|
◆ M0_TRACE_SUBSYSTEM
#define M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_DTM0 |
Definition at line 23 of file fop.c.
◆ anonymous enum
Enumerator |
---|
M0_FOPH_DTM0_ENTRY | |
M0_FOPH_DTM0_LOGGING | |
M0_FOPH_DTM0_TO_CAS | |
M0_FOPH_DTM0_CAS_DONE | |
Definition at line 108 of file fop.c.
◆ dtm0_cas_done_cb()
◆ dtm0_cas_fom_spawn()
◆ dtm0_cas_fop_prepare()
◆ dtm0_emsg_fom_tick()
static int dtm0_emsg_fom_tick |
( |
struct m0_fom * |
fom | ) |
|
|
static |
◆ dtm0_fom_create()
static int dtm0_fom_create |
( |
struct m0_fop * |
fop, |
|
|
struct m0_fom ** |
out, |
|
|
struct m0_reqh * |
reqh |
|
) |
| |
|
static |
◆ dtm0_fom_fini()
static void dtm0_fom_fini |
( |
struct m0_fom * |
fom | ) |
|
|
static |
◆ dtm0_fom_locality()
static size_t dtm0_fom_locality |
( |
const struct m0_fom * |
fom | ) |
|
|
static |
◆ dtm0_pmsg_fom_tick()
static int dtm0_pmsg_fom_tick |
( |
struct m0_fom * |
fom | ) |
|
|
static |
◆ dtm0_rmsg_fom_tick()
static int dtm0_rmsg_fom_tick |
( |
struct m0_fom * |
fom | ) |
|
|
static |
◆ dtm0_tmsg_fom_tick()
static int dtm0_tmsg_fom_tick |
( |
struct m0_fom * |
fom | ) |
|
|
static |
This fom is only being used in UTs.
Definition at line 631 of file fop.c.
◆ m0_dtm0_fop_fini()
M0_INTERNAL void m0_dtm0_fop_fini |
( |
void |
| ) |
|
◆ m0_dtm0_fop_init()
M0_INTERNAL int m0_dtm0_fop_init |
( |
void |
| ) |
|
◆ m0_dtm0_logrec_update()
◆ m0_dtm0_on_committed()
M0_INTERNAL int m0_dtm0_on_committed |
( |
struct m0_fom * |
fom, |
|
|
const struct m0_dtm0_tid * |
id |
|
) |
| |
◆ dtm0_conf
Initial value:= {
.scf_name = "dtm0-fom",
}
struct m0_sm_trans_descr dtm0_phases_trans[]
struct m0_sm_state_descr dtm0_phases[]
Definition at line 158 of file fop.c.
◆ dtm0_emsg_fom_ops
Initial value:= {
}
static void dtm0_fom_fini(struct m0_fom *fom)
static int dtm0_emsg_fom_tick(struct m0_fom *fom)
static size_t dtm0_fom_locality(const struct m0_fom *fom)
Definition at line 82 of file fop.c.
◆ dtm0_phases
Initial value:= {
.sd_name = "dtm0-entry",
},
.sd_name = "logging",
},
.sd_name = "dtm0-to-cas",
},
.sd_name = "cas-done",
},
}
Definition at line 115 of file fop.c.
◆ dtm0_phases_trans
Initial value:= {
}
struct m0_sm_trans_descr m0_generic_phases_trans[]
Definition at line 140 of file fop.c.
◆ dtm0_pmsg_fom_ops
Initial value:= {
}
static void dtm0_fom_fini(struct m0_fom *fom)
static int dtm0_pmsg_fom_tick(struct m0_fom *fom)
static size_t dtm0_fom_locality(const struct m0_fom *fom)
Definition at line 70 of file fop.c.
◆ dtm0_redo_fop_fopt
Definition at line 44 of file fop.c.
◆ dtm0_rep_fop_fopt
Definition at line 43 of file fop.c.
◆ dtm0_req_fom_type_ops
Initial value:= {
}
static int dtm0_fom_create(struct m0_fop *fop, struct m0_fom **out, struct m0_reqh *reqh)
Definition at line 96 of file fop.c.
◆ dtm0_req_fop_fopt
Definition at line 42 of file fop.c.
◆ dtm0_rmsg_fom_ops
Initial value:= {
}
static int dtm0_rmsg_fom_tick(struct m0_fom *fom)
static void dtm0_fom_fini(struct m0_fom *fom)
static size_t dtm0_fom_locality(const struct m0_fom *fom)
Definition at line 76 of file fop.c.
◆ dtm0_service_type
◆ dtm0_tmsg_fom_ops
Initial value:= {
}
static void dtm0_fom_fini(struct m0_fom *fom)
static int dtm0_tmsg_fom_tick(struct m0_fom *fom)
static size_t dtm0_fom_locality(const struct m0_fom *fom)
Definition at line 88 of file fop.c.