Lines Matching refs:rrdev
1345 struct md_rdev *rrdev = rcu_dereference( in wait_blocked_dev() local
1347 if (rdev == rrdev) in wait_blocked_dev()
1348 rrdev = NULL; in wait_blocked_dev()
1354 if (rrdev && unlikely(test_bit(Blocked, &rrdev->flags))) { in wait_blocked_dev()
1355 atomic_inc(&rrdev->nr_pending); in wait_blocked_dev()
1356 blocked_rdev = rrdev; in wait_blocked_dev()
1476 struct md_rdev *rrdev = rcu_dereference( in raid10_write_request() local
1478 if (rdev == rrdev) in raid10_write_request()
1479 rrdev = NULL; in raid10_write_request()
1482 if (rrdev && (test_bit(Faulty, &rrdev->flags))) in raid10_write_request()
1483 rrdev = NULL; in raid10_write_request()
1488 if (!rdev && !rrdev) { in raid10_write_request()
1528 if (rrdev) { in raid10_write_request()
1530 atomic_inc(&rrdev->nr_pending); in raid10_write_request()
1786 struct md_rdev *rrdev = rcu_dereference( in raid10_handle_discard() local
1794 if (rrdev && (test_bit(Faulty, &rrdev->flags))) in raid10_handle_discard()
1795 rrdev = NULL; in raid10_handle_discard()
1796 if (!rdev && !rrdev) in raid10_handle_discard()
1803 if (rrdev) { in raid10_handle_discard()
1805 atomic_inc(&rrdev->nr_pending); in raid10_handle_discard()
1862 struct md_rdev *rrdev = conf->mirrors[disk].replacement; in raid10_handle_discard() local
1870 md_submit_discard_bio(mddev, rrdev, rbio, in raid10_handle_discard()
1871 dev_start + choose_data_offset(r10_bio, rrdev), in raid10_handle_discard()