Lines Matching refs:md_rdev

57 static int check_and_add_serial(struct md_rdev *rdev, struct r1bio *r1_bio,  in check_and_add_serial()
80 static void wait_for_serialization(struct md_rdev *rdev, struct r1bio *r1_bio) in wait_for_serialization()
94 static void remove_serial(struct md_rdev *rdev, sector_t lo, sector_t hi) in remove_serial()
367 struct md_rdev *rdev = conf->mirrors[r1_bio->read_disk].rdev; in raid1_end_read_request()
451 struct md_rdev *rdev = conf->mirrors[mirror].rdev; in raid1_end_write_request()
596 struct md_rdev *rdev; in choose_first_rdev()
618 static bool rdev_in_recovery(struct md_rdev *rdev, struct r1bio *r1_bio) in rdev_in_recovery()
633 struct md_rdev *rdev; in choose_bb_rdev()
672 struct md_rdev *rdev; in choose_slow_rdev()
737 static bool rdev_readable(struct md_rdev *rdev, struct r1bio *r1_bio) in rdev_readable()
777 struct md_rdev *rdev; in choose_best_rdev()
1431 struct md_rdev *rdev = conf->mirrors[i].rdev; in wait_blocked_rdev()
1523 struct md_rdev *rdev = conf->mirrors[i].rdev; in raid1_write_request()
1612 struct md_rdev *rdev = conf->mirrors[i].rdev; in raid1_write_request()
1731 struct md_rdev *rdev = READ_ONCE(conf->mirrors[i].rdev); in raid1_status()
1755 static void raid1_error(struct mddev *mddev, struct md_rdev *rdev) in raid1_error()
1803 struct md_rdev *rdev = conf->mirrors[i].rdev; in print_conf()
1840 struct md_rdev *rdev = conf->mirrors[i].rdev; in raid1_spare_active()
1841 struct md_rdev *repl = conf->mirrors[conf->raid_disks + i].rdev; in raid1_spare_active()
1876 static bool raid1_add_conf(struct r1conf *conf, struct md_rdev *rdev, int disk, in raid1_add_conf()
1903 struct md_rdev *rdev = info->rdev; in raid1_remove_conf()
1922 static int raid1_add_disk(struct mddev *mddev, struct md_rdev *rdev) in raid1_add_disk()
1980 static int raid1_remove_disk(struct mddev *mddev, struct md_rdev *rdev) in raid1_remove_disk()
2008 struct md_rdev *repl = in raid1_remove_disk()
2091 struct md_rdev *rdev = conf->mirrors[find_bio_disk(r1_bio, bio)].rdev; in end_sync_write()
2109 static int r1_sync_page_io(struct md_rdev *rdev, sector_t sector, in r1_sync_page_io()
2148 struct md_rdev *rdev; in fix_sync_read_error()
2404 struct md_rdev *rdev = conf->mirrors[read_disk].rdev; in fix_read_error()
2443 struct md_rdev *rdev = conf->mirrors[read_disk].rdev; in fix_read_error()
2493 struct md_rdev *rdev = conf->mirrors[i].rdev; in narrow_write_error()
2563 struct md_rdev *rdev = conf->mirrors[m].rdev; in handle_sync_write_finished()
2588 struct md_rdev *rdev = conf->mirrors[m].rdev; in handle_write_finished()
2629 struct md_rdev *rdev; in handle_read_error()
2874 struct md_rdev *rdev; in raid1_sync_request()
2946 struct md_rdev *rdev = conf->mirrors[i].rdev; in raid1_sync_request()
3085 struct md_rdev *rdev; in setup_conf()
3427 struct md_rdev *rdev = conf->mirrors[d].rdev; in raid1_reshape()