Motr  M0
io_req_fop Struct Reference

#include <file_internal.h>

Collaboration diagram for io_req_fop:
Collaboration graph

Data Fields

uint64_t irf_magic
 
int irf_reply_rc
 
struct m0_io_fop irf_iofop
 
enum page_attr irf_pattr
 
struct m0_sm_ast irf_ast
 
struct m0_tlink irf_link
 
struct target_ioreqirf_tioreq
 

Detailed Description

Represents a wrapper over generic IO fop and its callback to keep track of such IO fops issued by the same target_ioreq structure.

When bottom halves for m0_sm_ast structures are run, it updates target_ioreq::ti_rc and target_ioreq::ti_bytes with data from IO reply fop. Then it decrements nw_xfer_request::nxr_iofop_nr, number of IO fops. When this count reaches zero, io_request::ir_sm changes its state.

Definition at line 1857 of file file_internal.h.

Field Documentation

◆ irf_ast

struct m0_sm_ast irf_ast

Callback per IO fop.

Definition at line 1871 of file file_internal.h.

◆ irf_iofop

struct m0_io_fop irf_iofop

In-memory handle for IO fop.

Definition at line 1865 of file file_internal.h.

◆ irf_link

struct m0_tlink irf_link

Linkage to link in to target_ioreq::ti_iofops list.

Definition at line 1874 of file file_internal.h.

◆ irf_magic

uint64_t irf_magic

Holds M0_T1FS_IOFOP_MAGIC

Definition at line 1859 of file file_internal.h.

◆ irf_pattr

enum page_attr irf_pattr

Type of pages {PA_DATA, PA_PARITY} carried by io fop.

Definition at line 1868 of file file_internal.h.

◆ irf_reply_rc

int irf_reply_rc

Status of IO reply fop.

Definition at line 1862 of file file_internal.h.

◆ irf_tioreq

struct target_ioreq* irf_tioreq

Backlink to target_ioreq object where rc and number of bytes are updated.

Definition at line 1880 of file file_internal.h.


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