Lines Matching refs:rrdev
998 struct md_rdev *rdev, *rrdev = NULL; in ops_run_io() local
1023 rrdev = rcu_dereference(conf->disks[i].replacement); in ops_run_io()
1027 rdev = rrdev; in ops_run_io()
1028 rrdev = NULL; in ops_run_io()
1033 if (rdev == rrdev) in ops_run_io()
1035 rrdev = NULL; in ops_run_io()
1037 if (test_bit(R5_ReadRepl, &head_sh->dev[i].flags) && rrdev) in ops_run_io()
1038 rdev = rrdev; in ops_run_io()
1039 rrdev = NULL; in ops_run_io()
1046 if (rrdev && test_bit(Faulty, &rrdev->flags)) in ops_run_io()
1047 rrdev = NULL; in ops_run_io()
1048 if (rrdev) in ops_run_io()
1049 atomic_inc(&rrdev->nr_pending); in ops_run_io()
1136 if (!rrdev) in ops_run_io()
1144 if (rrdev) in ops_run_io()
1156 if (rrdev) { in ops_run_io()
1159 md_sync_acct(rrdev->bdev, STRIPE_SECTORS); in ops_run_io()
1163 bio_set_dev(rbi, rrdev->bdev); in ops_run_io()
1178 + rrdev->new_data_offset); in ops_run_io()
1181 + rrdev->data_offset); in ops_run_io()
1206 if (!rdev && !rrdev) { in ops_run_io()