This source file includes following definitions.
- RF_CREATE_DAG_FUNC_DECL
- RF_CREATE_DAG_FUNC_DECL
- RF_CREATE_DAG_FUNC_DECL
- RF_CREATE_DAG_FUNC_DECL
- RF_CREATE_DAG_FUNC_DECL
- RF_CREATE_DAG_FUNC_DECL
- RF_CREATE_DAG_FUNC_DECL
- RF_CREATE_DAG_FUNC_DECL
- RF_CREATE_DAG_FUNC_DECL
- RF_CREATE_DAG_FUNC_DECL
- RF_CREATE_DAG_FUNC_DECL
- RF_CREATE_DAG_FUNC_DECL
- RF_CREATE_DAG_FUNC_DECL
- RF_CREATE_DAG_FUNC_DECL
- RF_CREATE_DAG_FUNC_DECL
- RF_CREATE_DAG_FUNC_DECL
- RF_CREATE_DAG_FUNC_DECL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34 #include "rf_archs.h"
35
36 #if RF_INCLUDE_EVENODD > 0
37
38 #include "rf_types.h"
39 #include "rf_raid.h"
40 #include "rf_dag.h"
41 #include "rf_dagfuncs.h"
42 #include "rf_dagutils.h"
43 #include "rf_etimer.h"
44 #include "rf_acctrace.h"
45 #include "rf_general.h"
46 #include "rf_evenodd_dags.h"
47 #include "rf_evenodd.h"
48 #include "rf_evenodd_dagfuncs.h"
49 #include "rf_pq.h"
50 #include "rf_dagdegrd.h"
51 #include "rf_dagdegwr.h"
52 #include "rf_dagffwr.h"
53
54
55
56
57
58
59 RF_CREATE_DAG_FUNC_DECL(rf_EO_100_CreateReadDAG)
60 {
61 rf_CreateDegradedReadDAG(raidPtr, asmap, dag_h, bp, flags, allocList,
62 &rf_eoPRecoveryFuncs);
63 }
64
65
66
67
68
69 RF_CREATE_DAG_FUNC_DECL(rf_EO_101_CreateReadDAG)
70 {
71 rf_CreateDegradedReadDAG(raidPtr, asmap, dag_h, bp, flags, allocList,
72 &rf_eoPRecoveryFuncs);
73 }
74
75
76
77
78
79
80 RF_CREATE_DAG_FUNC_DECL(rf_EO_110_CreateReadDAG)
81 {
82 RF_PhysDiskAddr_t *temp;
83
84 temp = asmap->parityInfo;
85 asmap->parityInfo = asmap->qInfo;
86 asmap->qInfo = temp;
87 rf_CreateDegradedReadDAG(raidPtr, asmap, dag_h, bp, flags, allocList,
88 &rf_eoERecoveryFuncs);
89 }
90
91
92
93
94 RF_CREATE_DAG_FUNC_DECL(rf_EOCreateDoubleDegradedReadDAG)
95 {
96 rf_EO_DoubleDegRead(raidPtr, asmap, dag_h, bp, flags, allocList);
97 }
98
99
100
101
102 RF_CREATE_DAG_FUNC_DECL(rf_EO_200_CreateReadDAG)
103 {
104 rf_EOCreateDoubleDegradedReadDAG(raidPtr, asmap, dag_h, bp, flags,
105 allocList);
106 }
107
108 RF_CREATE_DAG_FUNC_DECL(rf_EO_100_CreateWriteDAG)
109 {
110 if (asmap->numStripeUnitsAccessed != 1 &&
111 asmap->failedPDAs[0]->numSector !=
112 raidPtr->Layout.sectorsPerStripeUnit)
113 RF_PANIC();
114 rf_CommonCreateSimpleDegradedWriteDAG(raidPtr, asmap, dag_h, bp,
115 flags, allocList, 2,
116 (int (*) (RF_DagNode_t *)) rf_Degraded_100_EOFunc, RF_TRUE);
117 }
118
119
120
121
122 RF_CREATE_DAG_FUNC_DECL(rf_EO_001_CreateSmallWriteDAG)
123 {
124 rf_CommonCreateSmallWriteDAG(raidPtr, asmap, dag_h, bp, flags,
125 allocList, &rf_EOSmallWritePFuncs, NULL);
126 }
127
128
129
130
131 RF_CREATE_DAG_FUNC_DECL(rf_EO_001_CreateLargeWriteDAG)
132 {
133 rf_CommonCreateLargeWriteDAG(raidPtr, asmap, dag_h, bp, flags,
134 allocList, 1, rf_RegularPFunc, RF_TRUE);
135 }
136
137
138
139
140
141 RF_CREATE_DAG_FUNC_DECL(rf_EO_010_CreateSmallWriteDAG)
142 {
143 RF_PhysDiskAddr_t *temp;
144
145 temp = asmap->parityInfo;
146 asmap->parityInfo = asmap->qInfo;
147 asmap->qInfo = temp;
148 rf_CommonCreateSmallWriteDAG(raidPtr, asmap, dag_h, bp, flags,
149 allocList, &rf_EOSmallWriteEFuncs, NULL);
150 }
151
152
153
154
155
156 RF_CREATE_DAG_FUNC_DECL(rf_EO_010_CreateLargeWriteDAG)
157 {
158 RF_PhysDiskAddr_t *temp;
159
160 temp = asmap->parityInfo;
161 asmap->parityInfo = asmap->qInfo;
162 asmap->qInfo = temp;
163 rf_CommonCreateLargeWriteDAG(raidPtr, asmap, dag_h, bp, flags,
164 allocList, 1, rf_RegularEFunc, RF_FALSE);
165 }
166
167 RF_CREATE_DAG_FUNC_DECL(rf_EO_011_CreateWriteDAG)
168 {
169 rf_CreateNonRedundantWriteDAG(raidPtr, asmap, dag_h, bp, flags,
170 allocList, RF_IO_TYPE_WRITE);
171 }
172
173 RF_CREATE_DAG_FUNC_DECL(rf_EO_110_CreateWriteDAG)
174 {
175 RF_PhysDiskAddr_t *temp;
176
177 if (asmap->numStripeUnitsAccessed != 1 &&
178 asmap->failedPDAs[0]->numSector !=
179 raidPtr->Layout.sectorsPerStripeUnit) {
180 RF_PANIC();
181 }
182
183 temp = asmap->parityInfo;
184 asmap->parityInfo = asmap->qInfo;
185 asmap->qInfo = temp;
186 rf_CommonCreateSimpleDegradedWriteDAG(raidPtr, asmap, dag_h, bp,
187 flags, allocList, 1,
188 (int (*) (RF_DagNode_t *)) rf_EO_DegradedWriteEFunc, RF_FALSE);
189
190 }
191
192 RF_CREATE_DAG_FUNC_DECL(rf_EO_101_CreateWriteDAG)
193 {
194 if (asmap->numStripeUnitsAccessed != 1 &&
195 asmap->failedPDAs[0]->numSector !=
196 raidPtr->Layout.sectorsPerStripeUnit)
197 RF_PANIC();
198 rf_CommonCreateSimpleDegradedWriteDAG(raidPtr, asmap, dag_h, bp,
199 flags, allocList, 1, rf_RecoveryXorFunc, RF_TRUE);
200 }
201
202 RF_CREATE_DAG_FUNC_DECL(rf_EO_DoubleDegRead)
203 {
204 rf_DoubleDegRead(raidPtr, asmap, dag_h, bp, flags, allocList,
205 "Re", "EvenOddRecovery", rf_EvenOddDoubleRecoveryFunc);
206 }
207
208 RF_CREATE_DAG_FUNC_DECL(rf_EOCreateSmallWriteDAG)
209 {
210 rf_CommonCreateSmallWriteDAG(raidPtr, asmap, dag_h, bp, flags,
211 allocList, &rf_pFuncs, &rf_EOSmallWriteEFuncs);
212 }
213
214 RF_CREATE_DAG_FUNC_DECL(rf_EOCreateLargeWriteDAG)
215 {
216 rf_CommonCreateLargeWriteDAG(raidPtr, asmap, dag_h, bp, flags,
217 allocList, 2, rf_RegularPEFunc, RF_FALSE);
218 }
219
220 RF_CREATE_DAG_FUNC_DECL(rf_EO_200_CreateWriteDAG)
221 {
222 rf_DoubleDegSmallWrite(raidPtr, asmap, dag_h, bp, flags, allocList,
223 "Re", "We", "EOWrDDRecovery", rf_EOWriteDoubleRecoveryFunc);
224 }
225
226 #endif