Lines Matching refs:rrdev
1160 struct md_rdev *rdev, *rrdev = NULL; in ops_run_io() local
1186 rrdev = conf->disks[i].replacement; in ops_run_io()
1190 if (rdev == rrdev) in ops_run_io()
1192 rrdev = NULL; in ops_run_io()
1194 if (test_bit(R5_ReadRepl, &head_sh->dev[i].flags) && rrdev) in ops_run_io()
1195 rdev = rrdev; in ops_run_io()
1196 rrdev = NULL; in ops_run_io()
1203 if (rrdev && test_bit(Faulty, &rrdev->flags)) in ops_run_io()
1204 rrdev = NULL; in ops_run_io()
1205 if (rrdev) in ops_run_io()
1206 atomic_inc(&rrdev->nr_pending); in ops_run_io()
1294 if (rrdev) in ops_run_io()
1303 if (rrdev) { in ops_run_io()
1306 md_sync_acct(rrdev->bdev, RAID5_STRIPE_SECTORS(conf)); in ops_run_io()
1310 bio_init(rbi, rrdev->bdev, &dev->rvec, 1, op | op_flags); in ops_run_io()
1324 + rrdev->new_data_offset); in ops_run_io()
1327 + rrdev->data_offset); in ops_run_io()
1347 if (!rdev && !rrdev) { in ops_run_io()