Lines Matching refs:mirrors

197 			rdev_dec_pending(conf->mirrors[i].rdev, r1_bio->mddev);  in put_buf()
250 conf->mirrors[disk].head_position = in update_head_pos()
278 !test_bit(Faulty, &conf->mirrors[mirror].rdev->flags))) in raid1_end_read_request()
293 bdevname(conf->mirrors[mirror].rdev->bdev,b), (unsigned long long)r1_bio->sector); in raid1_end_read_request()
297 rdev_dec_pending(conf->mirrors[mirror].rdev, conf->mddev); in raid1_end_read_request()
341 md_error(r1_bio->mddev, conf->mirrors[mirror].rdev); in raid1_end_write_request()
360 if (test_bit(WriteMostly, &conf->mirrors[mirror].rdev->flags)) in raid1_end_write_request()
383 rdev_dec_pending(conf->mirrors[mirror].rdev, conf->mddev); in raid1_end_write_request()
443 rdev = rcu_dereference(conf->mirrors[disk].rdev); in read_balance()
462 if (this_sector == conf->mirrors[new_disk].head_position) in read_balance()
466 - conf->mirrors[new_disk].head_position); in read_balance()
475 rdev = rcu_dereference(conf->mirrors[disk].rdev); in read_balance()
486 new_distance = abs(this_sector - conf->mirrors[disk].head_position); in read_balance()
495 rdev = rcu_dereference(conf->mirrors[new_disk].rdev); in read_balance()
525 mdk_rdev_t *rdev = rcu_dereference(conf->mirrors[i].rdev); in raid1_congested()
783 mirror = conf->mirrors + rdisk; in make_request()
824 mdk_rdev_t *rdev = rcu_dereference(conf->mirrors[i].rdev); in make_request()
850 rdev_dec_pending(conf->mirrors[j].rdev, mddev); in make_request()
890 mbio->bi_sector = r1_bio->sector + conf->mirrors[i].rdev->data_offset; in make_request()
891 mbio->bi_bdev = conf->mirrors[i].rdev->bdev; in make_request()
909 if (test_bit(WriteMostly, &conf->mirrors[i].rdev->flags)) in make_request()
939 mdk_rdev_t *rdev = rcu_dereference(conf->mirrors[i].rdev); in status()
1005 mdk_rdev_t *rdev = rcu_dereference(conf->mirrors[i].rdev); in print_conf()
1037 mdk_rdev_t *rdev = conf->mirrors[i].rdev; in raid1_spare_active()
1067 if ( !(p=conf->mirrors+mirror)->rdev) { in raid1_add_disk()
1104 mirror_info_t *p = conf->mirrors+ number; in raid1_remove_disk()
1187 md_error(mddev, conf->mirrors[mirror].rdev); in end_sync_write()
1221 md_error(mddev, conf->mirrors[i].rdev); in sync_request_write()
1231 rdev_dec_pending(conf->mirrors[primary].rdev, mddev); in sync_request_write()
1259 rdev_dec_pending(conf->mirrors[i].rdev, mddev); in sync_request_write()
1271 conf->mirrors[i].rdev->data_offset; in sync_request_write()
1272 sbio->bi_bdev = conf->mirrors[i].rdev->bdev; in sync_request_write()
1319 rdev = conf->mirrors[d].rdev; in sync_request_write()
1344 rdev = conf->mirrors[d].rdev; in sync_request_write()
1360 rdev = conf->mirrors[d].rdev; in sync_request_write()
1371 md_error(mddev, conf->mirrors[r1_bio->read_disk].rdev); in sync_request_write()
1402 md_sync_acct(conf->mirrors[i].rdev->bdev, wbio->bi_size >> 9); in sync_request_write()
1442 rdev = conf->mirrors[d].rdev; in fix_read_error()
1457 md_error(mddev, conf->mirrors[read_disk].rdev); in fix_read_error()
1466 rdev = conf->mirrors[d].rdev; in fix_read_error()
1482 rdev = conf->mirrors[d].rdev; in fix_read_error()
1559 conf->mirrors[r1_bio->read_disk].rdev); in raid1d()
1578 rdev = conf->mirrors[disk].rdev; in raid1d()
1720 rdev = rcu_dereference(conf->mirrors[i].rdev); in sync_request()
1858 conf->mirrors = kzalloc(sizeof(struct mirror_info)*mddev->raid_disks, in setup_conf()
1860 if (!conf->mirrors) in setup_conf()
1885 disk = conf->mirrors + disk_idx; in setup_conf()
1903 disk = conf->mirrors + i; in setup_conf()
1939 kfree(conf->mirrors); in setup_conf()
1992 if (conf->mirrors[i].rdev == NULL || in run()
1993 !test_bit(In_sync, &conf->mirrors[i].rdev->flags) || in run()
1994 test_bit(Faulty, &conf->mirrors[i].rdev->flags)) in run()
2044 kfree(conf->mirrors); in stop()
2115 if (conf->mirrors[d].rdev) in raid1_reshape()
2147 mdk_rdev_t *rdev = conf->mirrors[d].rdev; in raid1_reshape()
2165 kfree(conf->mirrors); in raid1_reshape()
2166 conf->mirrors = newmirrors; in raid1_reshape()