Lines Matching refs:mirrors
347 conf->mirrors[r10_bio->devs[slot].devnum].head_position = in update_head_pos()
471 rdev = conf->mirrors[dev].replacement; in raid10_end_write_request()
475 rdev = conf->mirrors[dev].rdev; in raid10_end_write_request()
780 rdev = rcu_dereference(conf->mirrors[disk].replacement); in read_balance()
783 rdev = rcu_dereference(conf->mirrors[disk].rdev); in read_balance()
850 conf->mirrors[disk].head_position); in read_balance()
1206 err_rdev = rcu_dereference(conf->mirrors[disk].rdev); in raid10_read_request()
1286 rdev = conf->mirrors[devnum].replacement; in raid10_write_one_disk()
1290 rdev = conf->mirrors[devnum].rdev; in raid10_write_one_disk()
1293 rdev = conf->mirrors[devnum].rdev; in raid10_write_one_disk()
1306 &conf->mirrors[devnum].rdev->flags) in raid10_write_one_disk()
1344 struct md_rdev *rdev = rcu_dereference(conf->mirrors[i].rdev); in wait_blocked_dev()
1346 conf->mirrors[i].replacement); in wait_blocked_dev()
1475 struct md_rdev *rdev = rcu_dereference(conf->mirrors[d].rdev); in raid10_write_request()
1477 conf->mirrors[d].replacement); in raid10_write_request()
1624 rdev = conf->mirrors[dev].replacement; in raid10_end_discard_request()
1632 rdev = conf->mirrors[dev].rdev; in raid10_end_discard_request()
1785 struct md_rdev *rdev = rcu_dereference(conf->mirrors[disk].rdev); in raid10_handle_discard()
1787 conf->mirrors[disk].replacement); in raid10_handle_discard()
1848 struct md_rdev *rdev = conf->mirrors[disk].rdev; in raid10_handle_discard()
1862 struct md_rdev *rrdev = conf->mirrors[disk].replacement; in raid10_handle_discard()
1954 struct md_rdev *rdev = rcu_dereference(conf->mirrors[i].rdev); in raid10_status()
1987 (rdev = rcu_dereference(conf->mirrors[this].rdev)) && in _enough()
2074 rdev = conf->mirrors[i].rdev; in print_conf()
2104 tmp = conf->mirrors + i; in raid10_spare_active()
2163 conf->mirrors[rdev->saved_raid_disk].rdev == NULL) in raid10_add_disk()
2168 struct raid10_info *p = &conf->mirrors[mirror]; in raid10_add_disk()
2216 p = conf->mirrors + number; in raid10_remove_disk()
2280 &conf->mirrors[d].rdev->corrected_errors); in __end_sync_read()
2285 rdev_dec_pending(conf->mirrors[d].rdev, conf->mddev); in __end_sync_read()
2353 rdev = conf->mirrors[d].replacement; in end_sync_write()
2355 rdev = conf->mirrors[d].rdev; in end_sync_write()
2434 rdev = conf->mirrors[d].rdev; in sync_request_write()
2468 bio_reset(tbio, conf->mirrors[d].rdev->bdev, REQ_OP_WRITE); in sync_request_write()
2479 atomic_inc(&conf->mirrors[d].rdev->nr_pending); in sync_request_write()
2481 md_sync_acct(conf->mirrors[d].rdev->bdev, bio_sectors(tbio)); in sync_request_write()
2483 if (test_bit(FailFast, &conf->mirrors[d].rdev->flags)) in sync_request_write()
2485 tbio->bi_iter.bi_sector += conf->mirrors[d].rdev->data_offset; in sync_request_write()
2503 md_sync_acct(conf->mirrors[d].replacement->bdev, in sync_request_write()
2553 rdev = conf->mirrors[dr].rdev; in fix_recovery_read_error()
2561 rdev = conf->mirrors[dw].rdev; in fix_recovery_read_error()
2583 if (rdev != conf->mirrors[dw].rdev) { in fix_recovery_read_error()
2585 struct md_rdev *rdev2 = conf->mirrors[dw].rdev; in fix_recovery_read_error()
2593 conf->mirrors[dw].recovery_disabled in fix_recovery_read_error()
2634 atomic_inc(&conf->mirrors[d].rdev->nr_pending); in recovery_request_write()
2635 md_sync_acct(conf->mirrors[d].rdev->bdev, bio_sectors(wbio)); in recovery_request_write()
2639 atomic_inc(&conf->mirrors[d].replacement->nr_pending); in recovery_request_write()
2640 md_sync_acct(conf->mirrors[d].replacement->bdev, in recovery_request_write()
2725 rdev = conf->mirrors[d].rdev; in fix_read_error()
2760 rdev = rcu_dereference(conf->mirrors[d].rdev); in fix_read_error()
2791 rdev = conf->mirrors[dn].rdev; in fix_read_error()
2813 rdev = rcu_dereference(conf->mirrors[d].rdev); in fix_read_error()
2847 rdev = rcu_dereference(conf->mirrors[d].rdev); in fix_read_error()
2896 struct md_rdev *rdev = conf->mirrors[r10_bio->devs[i].devnum].rdev; in narrow_write_error()
3001 rdev = conf->mirrors[dev].rdev; in handle_write_completed()
3017 rdev = conf->mirrors[dev].replacement; in handle_write_completed()
3041 rdev = conf->mirrors[dev].rdev; in handle_write_completed()
3058 rdev = conf->mirrors[dev].replacement; in handle_write_completed()
3169 if (conf->mirrors[i].replacement) in init_resync()
3356 rcu_dereference(conf->mirrors[i].replacement); in raid10_sync_request()
3427 struct raid10_info *mirror = &conf->mirrors[i]; in raid10_sync_request()
3503 conf->mirrors[j].rdev); in raid10_sync_request()
3519 rcu_dereference(conf->mirrors[d].rdev); in raid10_sync_request()
3652 if (conf->mirrors[d].rdev && in raid10_sync_request()
3654 &conf->mirrors[d].rdev->flags)) in raid10_sync_request()
3722 rdev = rcu_dereference(conf->mirrors[d].rdev); in raid10_sync_request()
3752 rdev = rcu_dereference(conf->mirrors[d].replacement); in raid10_sync_request()
3780 rdev_dec_pending(conf->mirrors[d].rdev, in raid10_sync_request()
3785 conf->mirrors[d].replacement, in raid10_sync_request()
4034 conf->mirrors = kcalloc(mddev->raid_disks + max(0, -mddev->delta_disks), in setup_conf()
4037 if (!conf->mirrors) in setup_conf()
4091 kfree(conf->mirrors); in setup_conf()
4162 disk = conf->mirrors + disk_idx; in raid10_run()
4212 disk = conf->mirrors + i; in raid10_run()
4288 kfree(conf->mirrors); in raid10_run()
4301 kfree(conf->mirrors); in raid10_free()
4493 struct md_rdev *rdev = rcu_dereference(conf->mirrors[i].rdev); in calc_degraded()
4509 struct md_rdev *rdev = rcu_dereference(conf->mirrors[i].rdev); in calc_degraded()
4586 memcpy(conf->mirrors_new, conf->mirrors, in raid10_start_reshape()
4590 conf->mirrors_old = conf->mirrors; in raid10_start_reshape()
4591 conf->mirrors = conf->mirrors_new; in raid10_start_reshape()
4960 rdev2 = rcu_dereference(conf->mirrors[d].replacement); in reshape_request()
4963 rdev2 = rcu_dereference(conf->mirrors[d].rdev); in reshape_request()
5052 rdev = rcu_dereference(conf->mirrors[d].replacement); in reshape_request_write()
5055 rdev = rcu_dereference(conf->mirrors[d].rdev); in reshape_request_write()
5137 struct md_rdev *rdev = rcu_dereference(conf->mirrors[d].rdev); in handle_reshape_read_error()
5190 rdev = conf->mirrors[d].replacement; in end_reshape_write()
5193 rdev = conf->mirrors[d].rdev; in end_reshape_write()
5233 struct md_rdev *rdev = rcu_dereference(conf->mirrors[d].rdev); in raid10_finish_reshape()
5236 rdev = rcu_dereference(conf->mirrors[d].replacement); in raid10_finish_reshape()