Motr
M0
|
Data Fields | |
struct m0_fop | cf_fop |
struct m0_confc_ctx * | cf_ctx |
Wrapper structure, enclosing m0_fop and a pointer to m0_confc_ctx.
This structure serves two purposes:
It lets rpc layer own the fops created by confc.
The fop is freed by rpc layer during rpc session destruction, initiated by m0_confc_fini().
We cannot embed m0_fop into a m0_confc_ctx, because m0_confc_ctx may leave the scope before m0_confc_fini() is called. In this case the pointer to rpc item, known to rpc session, would be invalidated. Session destruction would fail.
struct m0_confc_ctx* cf_ctx |