23 #define M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_CM 122 if (!M0_IN(
rc, (-ENOBUFS, -ENODATA)))
130 if (
rc != -ENOBUFS) {
132 " fom complete with rc: %d",
rc);
135 if (!M0_IN(
rc, (-ENOBUFS, -ENODATA)))
187 #undef M0_TRACE_SUBSYSTEM
static const struct m0_fom_ops cm_sw_update_fom_ops
M0_INTERNAL void m0_cm_lock(struct m0_cm *cm)
const struct m0_cm_type * cm_type
#define M0_LOG(level,...)
static struct m0_cm * cm_swu2cm(struct m0_cm_sw_update *swu)
static uint64_t cm_swu_fom_locality(const struct m0_fom *fom)
#define container_of(ptr, type, member)
const struct m0_fom_type * fo_type
M0_INTERNAL void m0_cm_unlock(struct m0_cm *cm)
M0_INTERNAL void m0_cm_complete_notify(struct m0_cm *cm)
void m0_fom_init(struct m0_fom *fom, const struct m0_fom_type *fom_type, const struct m0_fom_ops *ops, struct m0_fop *fop, struct m0_fop *reply, struct m0_reqh *reqh)
static struct m0_sm_state_descr cm_sw_update_sd[SWU_NR]
void m0_fom_fini(struct m0_fom *fom)
void m0_fom_phase_move(struct m0_fom *fom, int32_t rc, int phase)
static struct m0_cm_sw_update * cm_fom2swu(struct m0_fom *fom)
M0_INTERNAL void m0_fom_type_init(struct m0_fom_type *type, uint64_t id, const struct m0_fom_type_ops *ops, const struct m0_reqh_service_type *svc_type, const struct m0_sm_conf *sm)
M0_INTERNAL void m0_cm_sw_update_start(struct m0_cm *cm)
static int cm_swu_fom_tick(struct m0_fom *fom)
static const struct m0_fom_type_ops cm_sw_update_fom_type_ops
struct m0_fom_type ct_swu_fomt
struct m0_sm_conf cm_sw_update_conf
static void cm_swu_fom_fini(struct m0_fom *fom)
static int(* swu_action[])(struct m0_cm_sw_update *swu)
static int swu_update(struct m0_cm_sw_update *swu)
M0_INTERNAL void m0_cm_sw_update_complete(struct m0_cm *cm)
struct m0_cm_sw_update cm_sw_update
M0_INTERNAL int m0_cm_sw_remote_update(struct m0_cm *cm)
struct m0_reqh_service cm_service
struct m0_reqh_service_type ct_stype
M0_INTERNAL void m0_fom_queue(struct m0_fom *fom)
M0_INTERNAL void m0_cm_sw_update_init(struct m0_cm_type *cmtype)
void(* fo_fini)(struct m0_fom *fom)
M0_INTERNAL void m0_cm_abort(struct m0_cm *cm, int rc)
M0_INTERNAL int m0_cm_sw_local_update(struct m0_cm *cm)