Lines Matching refs:rrdev
1153 struct md_rdev *rdev, *rrdev = NULL; in ops_run_io() local
1179 rrdev = rcu_dereference(conf->disks[i].replacement); in ops_run_io()
1183 rdev = rrdev; in ops_run_io()
1184 rrdev = NULL; in ops_run_io()
1189 if (rdev == rrdev) in ops_run_io()
1191 rrdev = NULL; in ops_run_io()
1193 if (test_bit(R5_ReadRepl, &head_sh->dev[i].flags) && rrdev) in ops_run_io()
1194 rdev = rrdev; in ops_run_io()
1195 rrdev = NULL; in ops_run_io()
1202 if (rrdev && test_bit(Faulty, &rrdev->flags)) in ops_run_io()
1203 rrdev = NULL; in ops_run_io()
1204 if (rrdev) in ops_run_io()
1205 atomic_inc(&rrdev->nr_pending); in ops_run_io()
1296 if (rrdev) in ops_run_io()
1308 if (rrdev) { in ops_run_io()
1311 md_sync_acct(rrdev->bdev, RAID5_STRIPE_SECTORS(conf)); in ops_run_io()
1315 bio_init(rbi, rrdev->bdev, &dev->rvec, 1, op | op_flags); in ops_run_io()
1329 + rrdev->new_data_offset); in ops_run_io()
1332 + rrdev->data_offset); in ops_run_io()
1355 if (!rdev && !rrdev) { in ops_run_io()