Lines Matching refs:mirrors

345 	conf->mirrors[r10_bio->devs[slot].devnum].head_position =  in update_head_pos()
469 rdev = conf->mirrors[dev].replacement; in raid10_end_write_request()
473 rdev = conf->mirrors[dev].rdev; in raid10_end_write_request()
778 rdev = rcu_dereference(conf->mirrors[disk].replacement); in read_balance()
788 rdev = rcu_dereference(conf->mirrors[disk].rdev); in read_balance()
856 conf->mirrors[disk].head_position); in read_balance()
1203 err_rdev = rcu_dereference(conf->mirrors[disk].rdev); in raid10_read_request()
1283 rdev = conf->mirrors[devnum].replacement; in raid10_write_one_disk()
1287 rdev = conf->mirrors[devnum].rdev; in raid10_write_one_disk()
1290 rdev = conf->mirrors[devnum].rdev; in raid10_write_one_disk()
1303 &conf->mirrors[devnum].rdev->flags) in raid10_write_one_disk()
1355 rdev = dereference_rdev_and_rrdev(&conf->mirrors[i], &rrdev); in wait_blocked_dev()
1484 rdev = dereference_rdev_and_rrdev(&conf->mirrors[d], &rrdev); in raid10_write_request()
1629 rdev = conf->mirrors[dev].replacement; in raid10_end_discard_request()
1637 rdev = conf->mirrors[dev].rdev; in raid10_end_discard_request()
1792 rdev = dereference_rdev_and_rrdev(&conf->mirrors[disk], &rrdev); in raid10_handle_discard()
1852 struct md_rdev *rdev = conf->mirrors[disk].rdev; in raid10_handle_discard()
1866 struct md_rdev *rrdev = conf->mirrors[disk].replacement; in raid10_handle_discard()
1958 struct md_rdev *rdev = rcu_dereference(conf->mirrors[i].rdev); in raid10_status()
1991 (rdev = rcu_dereference(conf->mirrors[this].rdev)) && in _enough()
2078 rdev = conf->mirrors[i].rdev; in print_conf()
2108 tmp = conf->mirrors + i; in raid10_spare_active()
2168 conf->mirrors[rdev->saved_raid_disk].rdev == NULL) in raid10_add_disk()
2173 p = &conf->mirrors[mirror]; in raid10_add_disk()
2198 p = &conf->mirrors[repl_slot]; in raid10_add_disk()
2225 p = conf->mirrors + number; in raid10_remove_disk()
2289 &conf->mirrors[d].rdev->corrected_errors); in __end_sync_read()
2294 rdev_dec_pending(conf->mirrors[d].rdev, conf->mddev); in __end_sync_read()
2362 rdev = conf->mirrors[d].replacement; in end_sync_write()
2364 rdev = conf->mirrors[d].rdev; in end_sync_write()
2443 rdev = conf->mirrors[d].rdev; in sync_request_write()
2477 bio_reset(tbio, conf->mirrors[d].rdev->bdev, REQ_OP_WRITE); in sync_request_write()
2488 atomic_inc(&conf->mirrors[d].rdev->nr_pending); in sync_request_write()
2490 md_sync_acct(conf->mirrors[d].rdev->bdev, bio_sectors(tbio)); in sync_request_write()
2492 if (test_bit(FailFast, &conf->mirrors[d].rdev->flags)) in sync_request_write()
2494 tbio->bi_iter.bi_sector += conf->mirrors[d].rdev->data_offset; in sync_request_write()
2512 md_sync_acct(conf->mirrors[d].replacement->bdev, in sync_request_write()
2562 rdev = conf->mirrors[dr].rdev; in fix_recovery_read_error()
2570 rdev = conf->mirrors[dw].rdev; in fix_recovery_read_error()
2592 if (rdev != conf->mirrors[dw].rdev) { in fix_recovery_read_error()
2594 struct md_rdev *rdev2 = conf->mirrors[dw].rdev; in fix_recovery_read_error()
2602 conf->mirrors[dw].recovery_disabled in fix_recovery_read_error()
2646 atomic_inc(&conf->mirrors[d].rdev->nr_pending); in recovery_request_write()
2647 md_sync_acct(conf->mirrors[d].rdev->bdev, bio_sectors(wbio)); in recovery_request_write()
2651 atomic_inc(&conf->mirrors[d].replacement->nr_pending); in recovery_request_write()
2652 md_sync_acct(conf->mirrors[d].replacement->bdev, in recovery_request_write()
2737 rdev = conf->mirrors[d].rdev; in fix_read_error()
2772 rdev = rcu_dereference(conf->mirrors[d].rdev); in fix_read_error()
2803 rdev = conf->mirrors[dn].rdev; in fix_read_error()
2825 rdev = rcu_dereference(conf->mirrors[d].rdev); in fix_read_error()
2859 rdev = rcu_dereference(conf->mirrors[d].rdev); in fix_read_error()
2908 struct md_rdev *rdev = conf->mirrors[r10_bio->devs[i].devnum].rdev; in narrow_write_error()
3017 rdev = conf->mirrors[dev].rdev; in handle_write_completed()
3033 rdev = conf->mirrors[dev].replacement; in handle_write_completed()
3057 rdev = conf->mirrors[dev].rdev; in handle_write_completed()
3074 rdev = conf->mirrors[dev].replacement; in handle_write_completed()
3185 if (conf->mirrors[i].replacement) in init_resync()
3373 rcu_dereference(conf->mirrors[i].replacement); in raid10_sync_request()
3399 conf->mirrors[error_disk].recovery_disabled = in raid10_sync_request()
3455 struct raid10_info *mirror = &conf->mirrors[i]; in raid10_sync_request()
3528 conf->mirrors[j].rdev); in raid10_sync_request()
3544 rcu_dereference(conf->mirrors[d].rdev); in raid10_sync_request()
3681 if (conf->mirrors[d].rdev && in raid10_sync_request()
3683 &conf->mirrors[d].rdev->flags)) in raid10_sync_request()
3751 rdev = rcu_dereference(conf->mirrors[d].rdev); in raid10_sync_request()
3781 rdev = rcu_dereference(conf->mirrors[d].replacement); in raid10_sync_request()
3809 rdev_dec_pending(conf->mirrors[d].rdev, in raid10_sync_request()
3814 conf->mirrors[d].replacement, in raid10_sync_request()
4042 kfree(conf->mirrors); in raid10_free_conf()
4077 conf->mirrors = kcalloc(mddev->raid_disks + max(0, -mddev->delta_disks), in setup_conf()
4080 if (!conf->mirrors) in setup_conf()
4200 disk = conf->mirrors + disk_idx; in raid10_run()
4250 disk = conf->mirrors + i; in raid10_run()
4519 struct md_rdev *rdev = rcu_dereference(conf->mirrors[i].rdev); in calc_degraded()
4535 struct md_rdev *rdev = rcu_dereference(conf->mirrors[i].rdev); in calc_degraded()
4612 memcpy(conf->mirrors_new, conf->mirrors, in raid10_start_reshape()
4616 conf->mirrors_old = conf->mirrors; in raid10_start_reshape()
4617 conf->mirrors = conf->mirrors_new; in raid10_start_reshape()
4986 rdev2 = rcu_dereference(conf->mirrors[d].replacement); in reshape_request()
4989 rdev2 = rcu_dereference(conf->mirrors[d].rdev); in reshape_request()
5078 rdev = rcu_dereference(conf->mirrors[d].replacement); in reshape_request_write()
5081 rdev = rcu_dereference(conf->mirrors[d].rdev); in reshape_request_write()
5163 struct md_rdev *rdev = rcu_dereference(conf->mirrors[d].rdev); in handle_reshape_read_error()
5216 rdev = conf->mirrors[d].replacement; in end_reshape_write()
5219 rdev = conf->mirrors[d].rdev; in end_reshape_write()
5259 struct md_rdev *rdev = rcu_dereference(conf->mirrors[d].rdev); in raid10_finish_reshape()
5262 rdev = rcu_dereference(conf->mirrors[d].replacement); in raid10_finish_reshape()