Lines Matching refs:rrdev
1295 struct md_rdev *rdev, *rrdev; in wait_blocked_dev() local
1298 rrdev = conf->mirrors[i].replacement; in wait_blocked_dev()
1304 if (rrdev && unlikely(test_bit(Blocked, &rrdev->flags))) { in wait_blocked_dev()
1305 atomic_inc(&rrdev->nr_pending); in wait_blocked_dev()
1306 blocked_rdev = rrdev; in wait_blocked_dev()
1421 struct md_rdev *rdev, *rrdev; in raid10_write_request() local
1424 rrdev = conf->mirrors[d].replacement; in raid10_write_request()
1427 if (rrdev && (test_bit(Faulty, &rrdev->flags))) in raid10_write_request()
1428 rrdev = NULL; in raid10_write_request()
1433 if (!rdev && !rrdev) { in raid10_write_request()
1473 if (rrdev) { in raid10_write_request()
1475 atomic_inc(&rrdev->nr_pending); in raid10_write_request()
1720 struct md_rdev *rdev, *rrdev; in raid10_handle_discard() local
1723 rrdev = conf->mirrors[disk].replacement; in raid10_handle_discard()
1729 if (rrdev && (test_bit(Faulty, &rrdev->flags))) in raid10_handle_discard()
1730 rrdev = NULL; in raid10_handle_discard()
1731 if (!rdev && !rrdev) in raid10_handle_discard()
1738 if (rrdev) { in raid10_handle_discard()
1740 atomic_inc(&rrdev->nr_pending); in raid10_handle_discard()
1796 struct md_rdev *rrdev = conf->mirrors[disk].replacement; in raid10_handle_discard() local
1804 md_submit_discard_bio(mddev, rrdev, rbio, in raid10_handle_discard()
1805 dev_start + choose_data_offset(r10_bio, rrdev), in raid10_handle_discard()