Searched refs:rrdev (Results 1 – 3 of 3) sorted by relevance
/Linux-v6.1/drivers/md/ |
D | raid10.c | 1345 struct md_rdev *rrdev = rcu_dereference( in wait_blocked_dev() local 1347 if (rdev == rrdev) in wait_blocked_dev() 1348 rrdev = NULL; in wait_blocked_dev() 1354 if (rrdev && unlikely(test_bit(Blocked, &rrdev->flags))) { in wait_blocked_dev() 1355 atomic_inc(&rrdev->nr_pending); in wait_blocked_dev() 1356 blocked_rdev = rrdev; in wait_blocked_dev() 1476 struct md_rdev *rrdev = rcu_dereference( in raid10_write_request() local 1478 if (rdev == rrdev) in raid10_write_request() 1479 rrdev = NULL; in raid10_write_request() 1482 if (rrdev && (test_bit(Faulty, &rrdev->flags))) in raid10_write_request() [all …]
|
D | raid5-cache.c | 1865 struct md_rdev *rdev, *rrdev; in r5l_recovery_replay_one_stripe() local 1901 rrdev = rcu_dereference(conf->disks[disk_index].replacement); in r5l_recovery_replay_one_stripe() 1902 if (rrdev) { in r5l_recovery_replay_one_stripe() 1903 atomic_inc(&rrdev->nr_pending); in r5l_recovery_replay_one_stripe() 1905 sync_page_io(rrdev, sh->sector, PAGE_SIZE, in r5l_recovery_replay_one_stripe() 1908 rdev_dec_pending(rrdev, rrdev->mddev); in r5l_recovery_replay_one_stripe()
|
D | raid5.c | 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() [all …]
|