Lines Matching defs:RF_Raid_s
98 struct RF_Raid_s { struct
104 u_int numCol; /* number of columns of disks, typically == #
106 u_int numSpare; /* number of spare disks */
107 int maxQueueDepth; /* max disk queue depth */
108 RF_SectorCount_t totalSectors; /* total number of sectors in the
110 RF_SectorCount_t sectorsPerDisk; /* number of sectors on each
112 u_int logBytesPerSector; /* base-2 log of the number of bytes
114 u_int bytesPerSector; /* bytes in a sector */
115 RF_int32 sectorMask; /* mask of bytes-per-sector */
117 RF_RaidLayout_t Layout; /* all information related to layout */
118 RF_RaidDisk_t *Disks; /* all information related to physical disks */
119 RF_DiskQueue_t *Queues; /* all information related to disk queues */
120 u_int maxQueue; /* initialized queues in Queues array */
121 const RF_DiskQueueSW_t *qType;/* pointer to the DiskQueueSW used for the
130 RF_RowStatus_t status; /* the status of each row in the array */
131 int valid; /* indicates successful configuration */
132 RF_LockTableEntry_t *lockTable; /* stripe-lock table */
133 RF_LockTableEntry_t *quiesceLock; /* quiesnce table */
134 int numFailures; /* total number of failures in the array */
135 int numNewFailures; /* number of *new* failures (that havn't
138 int parity_good; /* !0 if parity is known to be correct */
139 int serial_number; /* a "serial number" for this set */
140 int mod_counter; /* modification counter for component labels */
141 int clean; /* completely unused and should be removed */
143 int openings; /* Number of IO's which can be scheduled
147 int maxOutstanding; /* maxOutstanding requests (per-component) */
148 int autoconfigure; /* automatically configure this RAID set.
150 int root_partition; /* Use this set as /
152 int last_unit; /* last unit number (e.g. 0 for /dev/raid0)
155 int config_order; /* 0 .. n. The order in which the component
170 RF_VoidPointerListElem_t *iobuf; /* I/O buffer free list */
171 int iobuf_count; /* count of I/O buffers on the freelist */
172 int numEmergencyBuffers; /* number of these buffers to pre-allocate */
174 RF_VoidPointerListElem_t *stripebuf; /* Full-stripe buffer free list */
175 int stripebuf_count; /* count of full-stripe buffers on the freelist */
176 int numEmergencyStripeBuffers; /* number of these buffers to pre-allocate */
181 RF_ShutdownList_t *shutdownList; /* shutdown activities */
182 RF_AllocListElem_t *cleanupList; /* memory to be freed at
188 RF_HeadSepLimit_t headSepLimit;
189 int numFloatingReconBufs;
190 int reconInProgress;
191 int forceRecon;
193 RF_RaidReconDesc_t *reconDesc; /* reconstruction descriptor */
194 RF_ReconCtrl_t *reconControl; /* reconstruction control structure
202 RF_IoCount_t accesses_suspended;
203 RF_IoCount_t accs_in_flight;
204 int access_suspend_release;
205 int waiting_for_quiescence;
206 RF_CallbackFuncDesc_t *quiesce_wait_list;
211 RF_StripeCount_t parity_rewrite_stripes_done;
213 int recon_in_progress;
214 int parity_rewrite_in_progress;
215 int changing_components;
225 RF_DagNode_t *node_queue;
226 RF_Thread_t parity_rewrite_thread;
227 RF_Thread_t engine_thread;
228 RF_Thread_t engine_helper_thread;
229 RF_Thread_t recon_thread;
230 int shutdown_engine;
231 int shutdown_raidio;
232 int dags_in_flight; /* debug */
237 long pssTableSize;
242 int procsInBufWait;
243 int numFullReconBuffers;
245 RF_AccTraceEntry_t *recon_tracerecs;
247 unsigned long accumXorTimeUs;
257 int waitShutdown;
258 int nAccOutstanding;
260 int *abortRecon; /* Abort background operations requested */
262 RF_DiskId_t **diskids;
264 int raidid;
265 void *softc;
266 RF_AccTotals_t acc_totals;
267 int keep_acc_totals;
269 struct raidcinfo *raid_cinfo; /* array of component info */
271 int terminate_disk_queues;
283 RF_RowCol_t hist_diskreq[RF_MAXCOL];
286 int noRotate;
290 RF_SectorCount_t regionLogCapacity;
291 RF_ParityLogQueue_t parityLogPool; /* pool of unused parity logs */
292 RF_RegionInfo_t *regionInfo; /* array of region state */
293 int numParityLogs;
294 int numSectorsPerLog;
295 int regionParityRange;
296 int logsInUse; /* debugging */
297 RF_ParityLogDiskQueue_t parityLogDiskQueue; /* state of parity
299 RF_RegionBufferQueue_t regionBufferPool; /* buffers for holding
301 RF_RegionBufferQueue_t parityBufferPool; /* buffers for holding
303 void *parityLogBufferHeap; /* pool of unused parity logs */
304 RF_Thread_t pLogDiskThreadHandle;
307 struct rf_paritymap *parity_map;
308 struct RF_Pools_s pools;
309 struct RF_PoolNames_s poolNames;