Motr  M0
m0_spiel_wlock_ctx Struct Reference

#include <conf_mgmt.h>

Collaboration diagram for m0_spiel_wlock_ctx:
Collaboration graph

Data Fields

struct m0_rpc_machinewlc_rmach
 
struct m0_rpc_conn wlc_conn
 
struct m0_rpc_session wlc_sess
 
char * wlc_rm_addr
 
struct m0_fid wlc_rm_fid
 
struct m0_rw_lockable wlc_rwlock
 
struct m0_rm_owner wlc_owner
 
struct m0_fid wlc_owner_fid
 
struct m0_rm_remote wlc_creditor
 
struct m0_rm_incoming wlc_req
 
struct m0_semaphore wlc_sem
 
struct m0_rm_domain wlc_dom
 
struct m0_rm_resource_type wlc_rt
 
int32_t wlc_rc
 

Detailed Description

Spiel write lock context. Intended for taking write lock along transaction commission. When obtaining write lock, all read locks are revoked across entire cluster. Later read locks become obtainable only when write lock appears released explicitly.

Note
Write lock is held exclusively and cannot be revoked by RM. Only explicit lock cancellation is possible.

Definition at line 53 of file conf_mgmt.h.

Field Documentation

◆ wlc_conn

struct m0_rpc_conn wlc_conn

rpc connection

Definition at line 55 of file conf_mgmt.h.

◆ wlc_creditor

struct m0_rm_remote wlc_creditor

remote creditor

Definition at line 62 of file conf_mgmt.h.

◆ wlc_dom

struct m0_rm_domain wlc_dom

Write resource domain. Needs to be separate from global read domain used by rconfc instances. (see m0_rwlockable_read_domain())

Definition at line 70 of file conf_mgmt.h.

◆ wlc_owner

struct m0_rm_owner wlc_owner

local owner-borrower

Definition at line 60 of file conf_mgmt.h.

◆ wlc_owner_fid

struct m0_fid wlc_owner_fid

owner fid

Definition at line 61 of file conf_mgmt.h.

◆ wlc_rc

int32_t wlc_rc

result code of write lock request

Definition at line 77 of file conf_mgmt.h.

◆ wlc_req

struct m0_rm_incoming wlc_req

request to wait on

Definition at line 63 of file conf_mgmt.h.

◆ wlc_rm_addr

char* wlc_rm_addr

HA-reported RM address

Definition at line 57 of file conf_mgmt.h.

◆ wlc_rm_fid

struct m0_fid wlc_rm_fid

HA-reported RM fid

Definition at line 58 of file conf_mgmt.h.

◆ wlc_rmach

struct m0_rpc_machine* wlc_rmach

rpc machine

Definition at line 54 of file conf_mgmt.h.

◆ wlc_rt

struct m0_rm_resource_type wlc_rt

Write resource type. Needs to be registered with the write resource domain.

Definition at line 75 of file conf_mgmt.h.

◆ wlc_rwlock

struct m0_rw_lockable wlc_rwlock

lockable resource

Definition at line 59 of file conf_mgmt.h.

◆ wlc_sem

struct m0_semaphore wlc_sem

semaphore to wait until request is completed

Definition at line 65 of file conf_mgmt.h.

◆ wlc_sess

struct m0_rpc_session wlc_sess

rpc session

Definition at line 56 of file conf_mgmt.h.


The documentation for this struct was generated from the following file: