Lines Matching refs:rrdev
1076 struct md_rdev *rdev, *rrdev = NULL; in ops_run_io() local
1101 rrdev = rcu_dereference(conf->disks[i].replacement); in ops_run_io()
1105 rdev = rrdev; in ops_run_io()
1106 rrdev = NULL; in ops_run_io()
1111 if (rdev == rrdev) in ops_run_io()
1113 rrdev = NULL; in ops_run_io()
1115 if (test_bit(R5_ReadRepl, &head_sh->dev[i].flags) && rrdev) in ops_run_io()
1116 rdev = rrdev; in ops_run_io()
1117 rrdev = NULL; in ops_run_io()
1124 if (rrdev && test_bit(Faulty, &rrdev->flags)) in ops_run_io()
1125 rrdev = NULL; in ops_run_io()
1126 if (rrdev) in ops_run_io()
1127 atomic_inc(&rrdev->nr_pending); in ops_run_io()
1214 if (!rrdev) in ops_run_io()
1222 if (rrdev) in ops_run_io()
1234 if (rrdev) { in ops_run_io()
1237 md_sync_acct(rrdev->bdev, RAID5_STRIPE_SECTORS(conf)); in ops_run_io()
1241 bio_set_dev(rbi, rrdev->bdev); in ops_run_io()
1256 + rrdev->new_data_offset); in ops_run_io()
1259 + rrdev->data_offset); in ops_run_io()
1284 if (!rdev && !rrdev) { in ops_run_io()