Lines Matching refs:rrdev
1075 struct md_rdev *rdev, *rrdev = NULL; in ops_run_io() local
1100 rrdev = rcu_dereference(conf->disks[i].replacement); in ops_run_io()
1104 rdev = rrdev; in ops_run_io()
1105 rrdev = NULL; in ops_run_io()
1110 if (rdev == rrdev) in ops_run_io()
1112 rrdev = NULL; in ops_run_io()
1114 if (test_bit(R5_ReadRepl, &head_sh->dev[i].flags) && rrdev) in ops_run_io()
1115 rdev = rrdev; in ops_run_io()
1116 rrdev = NULL; in ops_run_io()
1123 if (rrdev && test_bit(Faulty, &rrdev->flags)) in ops_run_io()
1124 rrdev = NULL; in ops_run_io()
1125 if (rrdev) in ops_run_io()
1126 atomic_inc(&rrdev->nr_pending); in ops_run_io()
1213 if (!rrdev) in ops_run_io()
1221 if (rrdev) in ops_run_io()
1233 if (rrdev) { in ops_run_io()
1236 md_sync_acct(rrdev->bdev, RAID5_STRIPE_SECTORS(conf)); in ops_run_io()
1240 bio_set_dev(rbi, rrdev->bdev); in ops_run_io()
1255 + rrdev->new_data_offset); in ops_run_io()
1258 + rrdev->data_offset); in ops_run_io()
1283 if (!rdev && !rrdev) { in ops_run_io()