Lines Matching refs:md_rdev
59 static int check_and_add_serial(struct md_rdev *rdev, struct r1bio *r1_bio, in check_and_add_serial()
82 static void wait_for_serialization(struct md_rdev *rdev, struct r1bio *r1_bio) in wait_for_serialization()
96 static void remove_serial(struct md_rdev *rdev, sector_t lo, sector_t hi) in remove_serial()
364 struct md_rdev *rdev = conf->mirrors[r1_bio->read_disk].rdev; in raid1_end_read_request()
449 struct md_rdev *rdev = conf->mirrors[mirror].rdev; in raid1_end_write_request()
604 struct md_rdev *rdev; in read_balance()
797 struct md_rdev *rdev = (void *)bio->bi_disk; in flush_bio_list()
1223 struct md_rdev *rdev; in raid1_read_request()
1322 struct md_rdev *blocked_rdev; in raid1_write_request()
1378 struct md_rdev *rdev = rcu_dereference(conf->mirrors[i].rdev); in raid1_write_request()
1469 struct md_rdev *rdev = conf->mirrors[i].rdev; in raid1_write_request()
1586 struct md_rdev *rdev = rcu_dereference(conf->mirrors[i].rdev); in raid1_status()
1594 static void raid1_error(struct mddev *mddev, struct md_rdev *rdev) in raid1_error()
1651 struct md_rdev *rdev = rcu_dereference(conf->mirrors[i].rdev); in print_conf()
1689 struct md_rdev *rdev = conf->mirrors[i].rdev; in raid1_spare_active()
1690 struct md_rdev *repl = conf->mirrors[conf->raid_disks + i].rdev; in raid1_spare_active()
1725 static int raid1_add_disk(struct mddev *mddev, struct md_rdev *rdev) in raid1_add_disk()
1789 static int raid1_remove_disk(struct mddev *mddev, struct md_rdev *rdev) in raid1_remove_disk()
1830 struct md_rdev *repl = in raid1_remove_disk()
1915 struct md_rdev *rdev = conf->mirrors[find_bio_disk(r1_bio, bio)].rdev; in end_sync_write()
1936 static int r1_sync_page_io(struct md_rdev *rdev, sector_t sector, in r1_sync_page_io()
1975 struct md_rdev *rdev; in fix_sync_read_error()
2236 struct md_rdev *rdev; in fix_read_error()
2270 struct md_rdev *rdev = conf->mirrors[read_disk].rdev; in fix_read_error()
2327 struct md_rdev *rdev = conf->mirrors[i].rdev; in narrow_write_error()
2398 struct md_rdev *rdev = conf->mirrors[m].rdev; in handle_sync_write_finished()
2423 struct md_rdev *rdev = conf->mirrors[m].rdev; in handle_write_finished()
2466 struct md_rdev *rdev; in handle_read_error()
2714 struct md_rdev *rdev; in raid1_sync_request()
2787 struct md_rdev *rdev = conf->mirrors[i].rdev; in raid1_sync_request()
2926 struct md_rdev *rdev; in setup_conf()
3065 struct md_rdev *rdev; in raid1_run()
3285 struct md_rdev *rdev = conf->mirrors[d].rdev; in raid1_reshape()