Home
last modified time | relevance | path

Searched refs:rrdev (Results 1 – 3 of 3) sorted by relevance

/linux-6.6.21/drivers/md/
Draid10.c1327 struct md_rdev *rdev, *rrdev; in dereference_rdev_and_rrdev() local
1329 rrdev = rcu_dereference(mirror->replacement); in dereference_rdev_and_rrdev()
1336 if (rdev == rrdev) in dereference_rdev_and_rrdev()
1337 rrdev = NULL; in dereference_rdev_and_rrdev()
1339 *prrdev = rrdev; in dereference_rdev_and_rrdev()
1353 struct md_rdev *rdev, *rrdev; in wait_blocked_dev() local
1355 rdev = dereference_rdev_and_rrdev(&conf->mirrors[i], &rrdev); in wait_blocked_dev()
1361 if (rrdev && unlikely(test_bit(Blocked, &rrdev->flags))) { in wait_blocked_dev()
1362 atomic_inc(&rrdev->nr_pending); in wait_blocked_dev()
1363 blocked_rdev = rrdev; in wait_blocked_dev()
[all …]
Draid5-cache.c1866 struct md_rdev *rdev, *rrdev; in r5l_recovery_replay_one_stripe() local
1902 rrdev = rcu_dereference(conf->disks[disk_index].replacement); in r5l_recovery_replay_one_stripe()
1903 if (rrdev) { in r5l_recovery_replay_one_stripe()
1904 atomic_inc(&rrdev->nr_pending); in r5l_recovery_replay_one_stripe()
1906 sync_page_io(rrdev, sh->sector, PAGE_SIZE, in r5l_recovery_replay_one_stripe()
1909 rdev_dec_pending(rrdev, rrdev->mddev); in r5l_recovery_replay_one_stripe()
Draid5.c1160 struct md_rdev *rdev, *rrdev = NULL; in ops_run_io() local
1186 rrdev = rcu_dereference(conf->disks[i].replacement); in ops_run_io()
1190 rdev = rrdev; in ops_run_io()
1191 rrdev = NULL; in ops_run_io()
1196 if (rdev == rrdev) in ops_run_io()
1198 rrdev = NULL; in ops_run_io()
1200 if (test_bit(R5_ReadRepl, &head_sh->dev[i].flags) && rrdev) in ops_run_io()
1201 rdev = rrdev; in ops_run_io()
1202 rrdev = NULL; in ops_run_io()
1209 if (rrdev && test_bit(Faulty, &rrdev->flags)) in ops_run_io()
[all …]