Motr
M0
rm_foms.h
Go to the documentation of this file.
1
/* -*- C -*- */
2
/*
3
* Copyright (c) 2013-2020 Seagate Technology LLC and/or its Affiliates
4
*
5
* Licensed under the Apache License, Version 2.0 (the "License");
6
* you may not use this file except in compliance with the License.
7
* You may obtain a copy of the License at
8
*
9
* http://www.apache.org/licenses/LICENSE-2.0
10
*
11
* Unless required by applicable law or agreed to in writing, software
12
* distributed under the License is distributed on an "AS IS" BASIS,
13
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
* See the License for the specific language governing permissions and
15
* limitations under the License.
16
*
17
* For any questions about this software or licensing,
18
* please email opensource@seagate.com or cortx-questions@seagate.com.
19
*
20
*/
21
22
23
#pragma once
24
25
#ifndef __MOTR_RM_FOMS_H__
26
#define __MOTR_RM_FOMS_H__
27
28
#include "
lib/chan.h
"
29
#include "
fop/fop.h
"
30
#include "
rm/rm.h
"
31
#include "
rm/rm_internal.h
"
32
#include "
rm/rm_ha.h
"
/* m0_rm_ha_subscriber */
33
42
enum
m0_rm_fom_phases
{
43
FOPH_RM_REQ_START
=
M0_FOM_PHASE_INIT
,
44
FOPH_RM_REQ_FINISH
=
M0_FOM_PHASE_FINISH
,
45
FOPH_RM_REQ_CREDIT_GET
,
46
FOPH_RM_REQ_WAIT
,
47
/*
48
* Custom step required for asynchronous subscription to debtor death.
49
* So far, only borrow request needs this while subscribing debtor
50
* object to HA notifications.
51
*/
52
FOPH_RM_REQ_DEBTOR_SUBSCRIBE
,
53
};
54
55
struct
rm_request_fom
{
57
struct
m0_fom
rf_fom
;
59
struct
m0_rm_remote_incoming
rf_in
;
64
struct
m0_rm_ha_subscriber
rf_sbscr
;
65
};
66
69
/* __MOTR_RM_FOMS_H__ */
70
#endif
71
fop.h
rm_request_fom::rf_sbscr
struct m0_rm_ha_subscriber rf_sbscr
Definition:
rm_foms.h:64
FOPH_RM_REQ_START
Definition:
rm_foms.h:43
FOPH_RM_REQ_WAIT
Definition:
rm_foms.h:46
m0_rm_remote_incoming
Definition:
rm_internal.h:49
M0_FOM_PHASE_INIT
Definition:
fom.h:373
rm_request_fom
Definition:
rm_foms.h:55
rm_request_fom::rf_fom
struct m0_fom rf_fom
Definition:
rm_foms.h:57
m0_rm_fom_phases
m0_rm_fom_phases
Definition:
rm_foms.h:42
rm.h
chan.h
m0_fom
Definition:
fom.h:481
FOPH_RM_REQ_DEBTOR_SUBSCRIBE
Definition:
rm_foms.h:52
FOPH_RM_REQ_FINISH
Definition:
rm_foms.h:44
rm_internal.h
FOPH_RM_REQ_CREDIT_GET
Definition:
rm_foms.h:45
rm_ha.h
m0_rm_ha_subscriber
Definition:
rm_ha.h:131
M0_FOM_PHASE_FINISH
Definition:
fom.h:374
rm_request_fom::rf_in
struct m0_rm_remote_incoming rf_in
Definition:
rm_foms.h:59
rm
rm_foms.h
Generated on Thu Apr 14 2022 14:02:59 for Motr by
1.8.14