Lines Matching defs:mddev_s

116 struct mddev_s  struct
118 void *private;
119 struct mdk_personality *pers;
120 dev_t unit;
121 int md_minor;
122 struct list_head disks;
123 unsigned long flags;
128 int suspended;
129 atomic_t active_io;
130 int ro;
131 int sysfs_active; /* set when sysfs deletes
135 int ready; /* See when safe to pass
137 struct gendisk *gendisk;
139 struct kobject kobj;
140 int hold_active;
145 int major_version,
146 minor_version,
147 patch_version;
148 int persistent;
149 int external; /* metadata is
151 char metadata_type[17]; /* externally set*/
152 int chunk_sectors;
153 time_t ctime, utime;
154 int level, layout;
155 char clevel[16];
156 int raid_disks;
157 int max_disks;
158 sector_t dev_sectors; /* used size of
160 sector_t array_sectors; /* exported array size */
161 int external_size; /* size managed
163 __u64 events;
169 int can_decrease_events;
171 char uuid[16];
178 sector_t reshape_position;
179 int delta_disks, new_level, new_layout;
180 int new_chunk_sectors;
182 atomic_t plug_cnt; /* If device is expecting
185 struct mdk_thread_s *thread; /* management thread */
186 struct mdk_thread_s *sync_thread; /* doing resync or reconstruct */
187 sector_t curr_resync; /* last block scheduled */
194 sector_t curr_resync_completed;
195 unsigned long resync_mark; /* a recent timestamp */
196 sector_t resync_mark_cnt;/* blocks written at resync_mark */
197 sector_t curr_mark_cnt; /* blocks scheduled now */
199 sector_t resync_max_sectors; /* may be set by personality */
201 sector_t resync_mismatches; /* count of sectors where
206 sector_t suspend_lo;
207 sector_t suspend_hi;
209 int sync_speed_min;
210 int sync_speed_max;
213 int parallel_resync;
215 int ok_start_degraded;
240 unsigned long recovery;
241 int recovery_disabled; /* if we detect that recovery
245 int in_sync; /* know to not need resync */
255 struct mutex open_mutex;
256 struct mutex reconfig_mutex;
257 atomic_t active; /* general refcount */
258 atomic_t openers; /* number of active opens */
260 int changed; /* True if we might need to
262 int degraded; /* whether md should consider
266 atomic_t recovery_active; /* blocks scheduled, but not written */
267 wait_queue_head_t recovery_wait;
268 sector_t recovery_cp;
269 sector_t resync_min; /* user requested sync
271 sector_t resync_max; /* resync should pause
274 struct sysfs_dirent *sysfs_state; /* handle for 'array_state'
277 struct sysfs_dirent *sysfs_action; /* handle for 'sync_action' */
279 struct work_struct del_work; /* used for delayed sysfs removal */
281 spinlock_t write_lock;
282 wait_queue_head_t sb_wait; /* for waiting on superblock updates */
283 atomic_t pending_writes; /* number of active superblock writes */
285 unsigned int safemode; /* if set, update "clean" superblock
288 unsigned int safemode_delay;
289 struct timer_list safemode_timer;
290 atomic_t writes_pending;
291 struct request_queue *queue; /* for plugging ... */
293 struct bitmap *bitmap; /* the bitmap for the device */
294 struct {
316 } bitmap_info;
318 atomic_t max_corr_read_errors; /* max read retries */
319 struct list_head all_mddevs;
321 struct attribute_group *to_remove;
323 struct bio_set *bio_set;
329 struct bio *flush_bio;
330 atomic_t flush_pending;
331 struct work_struct flush_work;
332 struct work_struct event_work; /* used by dm to report failure event */