Lines Matching defs:r5conf
435 struct r5conf { struct
436 struct hlist_head *stripe_hashtbl;
438 spinlock_t hash_locks[NR_STRIPE_HASH_LOCKS];
439 struct mddev *mddev;
440 int chunk_sectors;
441 int level, algorithm, rmw_level;
442 int max_degraded;
443 int raid_disks;
444 int max_nr_stripes;
445 int min_nr_stripes;
452 sector_t reshape_progress;
456 sector_t reshape_safe;
457 int previous_raid_disks;
458 int prev_chunk_sectors;
459 int prev_algo;
460 short generation; /* increments with every reshape */
461 seqcount_t gen_lock; /* lock against generation changes */
462 unsigned long reshape_checkpoint; /* Time we last updated
464 long long min_offset_diff; /* minimum difference between
471 struct list_head handle_list; /* stripes needing handling */
472 struct list_head hold_list; /* preread ready stripes */
473 struct list_head delayed_list; /* stripes that have plugged requests */
474 struct list_head bitmap_list; /* stripes delaying awaiting bitmap update */
475 struct bio *retry_read_aligned; /* currently retrying aligned bios */
476 struct bio *retry_read_aligned_list; /* aligned bios retry list */
477 atomic_t preread_active_stripes; /* stripes with scheduled io */
478 atomic_t active_aligned_reads;
479 atomic_t pending_full_writes; /* full write backlog */
480 int bypass_count; /* bypassed prereads */
481 int bypass_threshold; /* preread nice */
482 int skip_copy; /* Don't copy data from bio to stripe cache */
483 struct list_head *last_hold; /* detect hold_list promotions */
486 struct bio_list return_bi;
488 atomic_t reshape_stripes; /* stripes with pending writes for reshape */
492 int active_name;
493 char cache_name[2][32];
494 struct kmem_cache *slab_cache; /* for allocating stripes */
495 struct mutex cache_size_mutex; /* Protect changes to cache size */
497 int seq_flush, seq_write;
498 int quiesce;
500 int fullsync; /* set to 1 if a full sync is needed,
504 int recovery_disabled;
506 struct raid5_percpu {
512 } __percpu *percpu;
513 int scribble_disks;
514 int scribble_sectors;
516 struct notifier_block cpu_notify;
522 atomic_t active_stripes;
523 struct list_head inactive_list[NR_STRIPE_HASH_LOCKS];
524 atomic_t empty_inactive_list_nr;
525 struct llist_head released_stripes;
526 wait_queue_head_t wait_for_quiescent;
527 wait_queue_head_t wait_for_stripe;
528 wait_queue_head_t wait_for_overlap;
529 unsigned long cache_state;
541 struct shrinker shrinker;
542 int pool_size; /* number of disks in stripeheads in pool */
543 spinlock_t device_lock;
544 struct disk_info *disks;
549 struct md_thread *thread;
550 struct list_head temp_inactive_list[NR_STRIPE_HASH_LOCKS];
551 struct r5worker_group *worker_groups;
552 int group_cnt;
553 int worker_cnt_per_group;
554 struct r5l_log *log;