Lines Matching refs:mirrors
291 conf->mirrors[r10_bio->devs[slot].devnum].head_position = in update_head_pos()
419 rdev = conf->mirrors[dev].replacement; in raid10_end_write_request()
423 rdev = conf->mirrors[dev].rdev; in raid10_end_write_request()
637 conf->mirrors[disk].rdev); in raid10_mergeable_bvec()
649 rdev = rcu_dereference(conf->mirrors[disk].replacement); in raid10_mergeable_bvec()
726 rdev = rcu_dereference(conf->mirrors[disk].replacement); in read_balance()
730 rdev = rcu_dereference(conf->mirrors[disk].rdev); in read_balance()
786 conf->mirrors[disk].head_position); in read_balance()
830 struct md_rdev *rdev = rcu_dereference(conf->mirrors[i].rdev); in raid10_congested()
1180 struct md_rdev *rdev = rcu_dereference(conf->mirrors[d].rdev); in make_request()
1182 conf->mirrors[d].replacement); in make_request()
1270 rdev_dec_pending(conf->mirrors[d].rdev, mddev); in make_request()
1275 rdev = conf->mirrors[d].replacement; in make_request()
1279 rdev = conf->mirrors[d].rdev; in make_request()
1311 struct md_rdev *rdev = conf->mirrors[d].rdev; in make_request()
1332 struct md_rdev *rdev = conf->mirrors[d].replacement; in make_request()
1336 rdev = conf->mirrors[d].rdev; in make_request()
1405 conf->mirrors[i].rdev && in status()
1406 test_bit(In_sync, &conf->mirrors[i].rdev->flags) ? "U" : "_"); in status()
1424 if (conf->mirrors[this].rdev && in enough()
1488 tmp = conf->mirrors + i; in print_conf()
1519 tmp = conf->mirrors + i; in raid10_spare_active()
1581 conf->mirrors[rdev->saved_raid_disk].rdev == NULL) in raid10_add_disk()
1586 struct mirror_info *p = &conf->mirrors[mirror]; in raid10_add_disk()
1640 struct mirror_info *p = conf->mirrors + number; in raid10_remove_disk()
1711 &conf->mirrors[d].rdev->corrected_errors); in end_sync_read()
1716 rdev_dec_pending(conf->mirrors[d].rdev, conf->mddev); in end_sync_read()
1768 rdev = conf->mirrors[d].replacement; in end_sync_write()
1770 rdev = conf->mirrors[d].rdev; in end_sync_write()
1884 atomic_inc(&conf->mirrors[d].rdev->nr_pending); in sync_request_write()
1886 md_sync_acct(conf->mirrors[d].rdev->bdev, tbio->bi_size >> 9); in sync_request_write()
1888 tbio->bi_sector += conf->mirrors[d].rdev->data_offset; in sync_request_write()
1889 tbio->bi_bdev = conf->mirrors[d].rdev->bdev; in sync_request_write()
1910 md_sync_acct(conf->mirrors[d].replacement->bdev, in sync_request_write()
1959 rdev = conf->mirrors[dr].rdev; in fix_recovery_read_error()
1967 rdev = conf->mirrors[dw].rdev; in fix_recovery_read_error()
1989 if (rdev != conf->mirrors[dw].rdev) { in fix_recovery_read_error()
1991 struct md_rdev *rdev2 = conf->mirrors[dw].rdev; in fix_recovery_read_error()
2001 conf->mirrors[dw].recovery_disabled in fix_recovery_read_error()
2042 atomic_inc(&conf->mirrors[d].rdev->nr_pending); in recovery_request_write()
2043 md_sync_acct(conf->mirrors[d].rdev->bdev, wbio->bi_size >> 9); in recovery_request_write()
2047 atomic_inc(&conf->mirrors[d].replacement->nr_pending); in recovery_request_write()
2048 md_sync_acct(conf->mirrors[d].replacement->bdev, in recovery_request_write()
2135 rdev = conf->mirrors[d].rdev; in fix_read_error()
2156 md_error(mddev, conf->mirrors[d].rdev); in fix_read_error()
2176 rdev = rcu_dereference(conf->mirrors[d].rdev); in fix_read_error()
2206 rdev = conf->mirrors[dn].rdev; in fix_read_error()
2230 rdev = rcu_dereference(conf->mirrors[d].rdev); in fix_read_error()
2268 rdev = rcu_dereference(conf->mirrors[d].rdev); in fix_read_error()
2340 struct md_rdev *rdev = conf->mirrors[r10_bio->devs[i].devnum].rdev; in narrow_write_error()
2504 rdev = conf->mirrors[dev].rdev; in handle_write_completed()
2520 rdev = conf->mirrors[dev].replacement; in handle_write_completed()
2542 rdev = conf->mirrors[dev].rdev; in handle_write_completed()
2559 rdev = conf->mirrors[dev].replacement; in handle_write_completed()
2636 if (conf->mirrors[i].replacement) in init_resync()
2727 if (conf->mirrors[i].replacement) in sync_request()
2728 conf->mirrors[i].replacement in sync_request()
2790 struct mirror_info *mirror = &conf->mirrors[i]; in sync_request()
2845 if (conf->mirrors[j].rdev == NULL || in sync_request()
2846 test_bit(Faulty, &conf->mirrors[j].rdev->flags)) { in sync_request()
2862 if (!conf->mirrors[d].rdev || in sync_request()
2863 !test_bit(In_sync, &conf->mirrors[d].rdev->flags)) in sync_request()
2867 rdev = conf->mirrors[d].rdev; in sync_request()
3035 if (conf->mirrors[d].rdev == NULL || in sync_request()
3036 test_bit(Faulty, &conf->mirrors[d].rdev->flags)) in sync_request()
3039 if (is_badblock(conf->mirrors[d].rdev, in sync_request()
3051 atomic_inc(&conf->mirrors[d].rdev->nr_pending); in sync_request()
3059 conf->mirrors[d].rdev->data_offset; in sync_request()
3060 bio->bi_bdev = conf->mirrors[d].rdev->bdev; in sync_request()
3063 if (conf->mirrors[d].replacement == NULL || in sync_request()
3065 &conf->mirrors[d].replacement->flags)) in sync_request()
3073 atomic_inc(&conf->mirrors[d].rdev->nr_pending); in sync_request()
3080 conf->mirrors[d].replacement->data_offset; in sync_request()
3081 bio->bi_bdev = conf->mirrors[d].replacement->bdev; in sync_request()
3089 rdev_dec_pending(conf->mirrors[d].rdev, in sync_request()
3094 conf->mirrors[d].replacement, in sync_request()
3262 conf->mirrors = kzalloc(sizeof(struct mirror_info)*mddev->raid_disks, in setup_conf()
3264 if (!conf->mirrors) in setup_conf()
3306 kfree(conf->mirrors); in setup_conf()
3354 disk = conf->mirrors + disk_idx; in run()
3384 disk = conf->mirrors + i; in run()
3446 kfree(conf->mirrors); in run()
3464 kfree(conf->mirrors); in stop()