Lines Matching refs:replacement

643 			rdev = rcu_dereference(conf->disks[i].replacement);  in raid5_calc_degraded()
669 rdev = rcu_dereference(conf->disks[i].replacement); in raid5_calc_degraded()
1101 rrdev = rcu_dereference(conf->disks[i].replacement); in ops_run_io()
2690 rdev = conf->disks[i].replacement; in raid5_end_read_request()
2802 int replacement = 0; in raid5_end_write_request() local
2810 rdev = conf->disks[i].replacement; in raid5_end_write_request()
2812 replacement = 1; in raid5_end_write_request()
2831 if (replacement) { in raid5_end_write_request()
2860 if (sh->batch_head && bi->bi_status && !replacement) in raid5_end_write_request()
3696 rdev = rcu_dereference(conf->disks[i].replacement); in handle_failed_sync()
3718 rdev = rcu_dereference(sh->raid_conf->disks[disk_idx].replacement); in want_replace()
4646 rdev = rcu_dereference(conf->disks[i].replacement); in analyse_stripe()
4727 conf->disks[i].replacement); in analyse_stripe()
4749 conf->disks[i].replacement); in analyse_stripe()
5244 rdev = conf->disks[i].replacement; in handle_stripe()
5419 rdev = rcu_dereference(conf->disks[dd_idx].replacement); in raid5_read_one_chunk()
7317 if (disk->replacement) in setup_conf()
7319 disk->replacement = rdev; in setup_conf()
7609 if (!rdev && conf->disks[i].replacement) { in raid5_run()
7611 rdev = conf->disks[i].replacement; in raid5_run()
7612 conf->disks[i].replacement = NULL; in raid5_run()
7618 if (conf->disks[i].replacement && in raid5_run()
7848 if (tmp->replacement in raid5_spare_active()
7849 && tmp->replacement->recovery_offset == MaxSector in raid5_spare_active()
7850 && !test_bit(Faulty, &tmp->replacement->flags) in raid5_spare_active()
7851 && !test_and_set_bit(In_sync, &tmp->replacement->flags)) { in raid5_spare_active()
7865 sysfs_notify_dirent_safe(tmp->replacement->sysfs_state); in raid5_spare_active()
7907 else if (rdev == p->replacement) in raid5_remove_disk()
7908 rdevp = &p->replacement; in raid5_remove_disk()
7927 (!p->replacement || p->replacement == rdev) && in raid5_remove_disk()
7946 if (p->replacement) { in raid5_remove_disk()
7948 p->rdev = p->replacement; in raid5_remove_disk()
7949 clear_bit(Replacement, &p->replacement->flags); in raid5_remove_disk()
7953 p->replacement = NULL; in raid5_remove_disk()
8030 p->replacement == NULL) { in raid5_add_disk()
8036 rcu_assign_pointer(p->replacement, rdev); in raid5_add_disk()
8334 rdev = conf->disks[d].replacement; in raid5_finish_reshape()