Motr  M0
ios_start_sm.c File Reference
#include "lib/trace.h"
#include "lib/types.h"
#include "lib/errno.h"
#include "lib/lockers.h"
#include "lib/memory.h"
#include "lib/misc.h"
#include "be/seg.h"
#include "be/tx.h"
#include "cob/cob.h"
#include "ioservice/io_service.h"
#include "ioservice/ios_start_sm.h"
#include "motr/setup.h"
#include "module/instance.h"
#include "pool/pool.h"
#include "reqh/reqh.h"
#include "reqh/reqh_service.h"
Include dependency graph for ios_start_sm.c:

Go to the source code of this file.

Macros

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_IOSERVICE
 

Functions

M0_INTERNAL int m0_ios_create_buffer_pool (struct m0_reqh_service *service)
 
M0_INTERNAL void m0_ios_delete_buffer_pool (struct m0_reqh_service *service)
 
static void ios_start_buffer_pool_create (struct m0_ios_start_sm *ios_sm)
 
static void ios_start_sm_tick (struct m0_ios_start_sm *ios_sm)
 
static struct m0_ios_start_smios_start_clink2sm (struct m0_clink *cl)
 
static struct m0_ios_start_smios_start_ast2sm (struct m0_sm_ast *ast)
 
M0_INTERNAL void m0_ios_start_lock (struct m0_ios_start_sm *ios_sm)
 
M0_INTERNAL void m0_ios_start_unlock (struct m0_ios_start_sm *ios_sm)
 
static bool ios_start_is_locked (const struct m0_ios_start_sm *ios_sm)
 
static enum m0_ios_start_state ios_start_state_get (const struct m0_ios_start_sm *ios_sm)
 
static void ios_start_state_set (struct m0_ios_start_sm *ios_sm, enum m0_ios_start_state state)
 
static void ios_start_sm_failure (struct m0_ios_start_sm *ios_sm, int rc)
 
M0_INTERNAL int m0_ios_start_sm_init (struct m0_ios_start_sm *ios_sm, struct m0_reqh_service *service, struct m0_sm_group *grp)
 
M0_INTERNAL void m0_ios_start_sm_exec (struct m0_ios_start_sm *ios_sm)
 
static void ios_start_tx_waiter (struct m0_clink *cl, uint32_t flag)
 
static bool ios_start_tx_open_wait_cb (struct m0_clink *cl)
 
static bool ios_start_tx_done_wait_cb (struct m0_clink *cl)
 
static void ios_start_tx_open (struct m0_ios_start_sm *ios_sm, bool exclusive)
 
static void ios_start_tx_close (struct m0_ios_start_sm *ios_sm)
 
static void ios_start_cdom_tx_open (struct m0_ios_start_sm *ios_sm)
 
static void ios_start_ast_start (struct m0_sm_group *grp, struct m0_sm_ast *ast)
 
static void ios_start_ast_cdom_create (struct m0_sm_group *grp, struct m0_sm_ast *ast)
 
static void ios_start_cob_tx_open (struct m0_ios_start_sm *ios_sm)
 
static void ios_start_ast_cdom_create_res (struct m0_sm_group *grp, struct m0_sm_ast *ast)
 
static void ios_start_ast_mkfs (struct m0_sm_group *grp, struct m0_sm_ast *ast)
 
static void ios_start_ast_mkfs_result (struct m0_sm_group *grp, struct m0_sm_ast *ast)
 
M0_INTERNAL void m0_ios_start_sm_fini (struct m0_ios_start_sm *ios_sm)
 

Variables

static struct m0_sm_state_descr ios_start_sm_states []
 
static const struct m0_sm_conf ios_start_sm_conf
 

Macro Definition Documentation

◆ M0_TRACE_SUBSYSTEM

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_IOSERVICE

Definition at line 23 of file ios_start_sm.c.

Function Documentation

◆ ios_start_ast2sm()

static struct m0_ios_start_sm* ios_start_ast2sm ( struct m0_sm_ast ast)
static

Definition at line 106 of file ios_start_sm.c.

Here is the caller graph for this function:

◆ ios_start_ast_cdom_create()

static void ios_start_ast_cdom_create ( struct m0_sm_group grp,
struct m0_sm_ast ast 
)
static

Definition at line 316 of file ios_start_sm.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ios_start_ast_cdom_create_res()

static void ios_start_ast_cdom_create_res ( struct m0_sm_group grp,
struct m0_sm_ast ast 
)
static

Definition at line 360 of file ios_start_sm.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ios_start_ast_mkfs()

static void ios_start_ast_mkfs ( struct m0_sm_group grp,
struct m0_sm_ast ast 
)
static

Definition at line 389 of file ios_start_sm.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ios_start_ast_mkfs_result()

static void ios_start_ast_mkfs_result ( struct m0_sm_group grp,
struct m0_sm_ast ast 
)
static

Definition at line 405 of file ios_start_sm.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ios_start_ast_start()

static void ios_start_ast_start ( struct m0_sm_group grp,
struct m0_sm_ast ast 
)
static

Definition at line 288 of file ios_start_sm.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ios_start_buffer_pool_create()

static void ios_start_buffer_pool_create ( struct m0_ios_start_sm ios_sm)
static

Definition at line 421 of file ios_start_sm.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ios_start_cdom_tx_open()

static void ios_start_cdom_tx_open ( struct m0_ios_start_sm ios_sm)
static

Definition at line 268 of file ios_start_sm.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ios_start_clink2sm()

static struct m0_ios_start_sm* ios_start_clink2sm ( struct m0_clink cl)
static

Definition at line 101 of file ios_start_sm.c.

Here is the caller graph for this function:

◆ ios_start_cob_tx_open()

static void ios_start_cob_tx_open ( struct m0_ios_start_sm ios_sm)
static

Definition at line 341 of file ios_start_sm.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ios_start_is_locked()

static bool ios_start_is_locked ( const struct m0_ios_start_sm ios_sm)
static

Definition at line 121 of file ios_start_sm.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ios_start_sm_failure()

static void ios_start_sm_failure ( struct m0_ios_start_sm ios_sm,
int  rc 
)
static

Definition at line 143 of file ios_start_sm.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ios_start_sm_tick()

static void ios_start_sm_tick ( struct m0_ios_start_sm ios_sm)
static

Definition at line 441 of file ios_start_sm.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ios_start_state_get()

static enum m0_ios_start_state ios_start_state_get ( const struct m0_ios_start_sm ios_sm)
static

Definition at line 126 of file ios_start_sm.c.

Here is the caller graph for this function:

◆ ios_start_state_set()

static void ios_start_state_set ( struct m0_ios_start_sm ios_sm,
enum m0_ios_start_state  state 
)
static

Definition at line 132 of file ios_start_sm.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ios_start_tx_close()

static void ios_start_tx_close ( struct m0_ios_start_sm ios_sm)
static

Definition at line 259 of file ios_start_sm.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ios_start_tx_done_wait_cb()

static bool ios_start_tx_done_wait_cb ( struct m0_clink cl)
static

Definition at line 241 of file ios_start_sm.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ios_start_tx_open()

static void ios_start_tx_open ( struct m0_ios_start_sm ios_sm,
bool  exclusive 
)
static

Definition at line 247 of file ios_start_sm.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ios_start_tx_open_wait_cb()

static bool ios_start_tx_open_wait_cb ( struct m0_clink cl)
static

Definition at line 235 of file ios_start_sm.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ios_start_tx_waiter()

static void ios_start_tx_waiter ( struct m0_clink cl,
uint32_t  flag 
)
static

Definition at line 220 of file ios_start_sm.c.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ ios_start_sm_conf

const struct m0_sm_conf ios_start_sm_conf
static
Initial value:
= {
.scf_name = "ios_cdom conf",
.scf_nr_states = ARRAY_SIZE(ios_start_sm_states),
.scf_state = ios_start_sm_states
}
static struct m0_sm_state_descr ios_start_sm_states[]
Definition: ios_start_sm.c:45
#define ARRAY_SIZE(a)
Definition: misc.h:45

Definition at line 92 of file ios_start_sm.c.

◆ ios_start_sm_states

struct m0_sm_state_descr ios_start_sm_states[]
static

Definition at line 45 of file ios_start_sm.c.