Home
last modified time | relevance | path

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

/drivers/md/
Draid10.c1322 struct md_rdev *rdev, *rrdev; in dereference_rdev_and_rrdev() local
1324 rrdev = rcu_dereference(mirror->replacement); in dereference_rdev_and_rrdev()
1331 if (rdev == rrdev) in dereference_rdev_and_rrdev()
1332 rrdev = NULL; in dereference_rdev_and_rrdev()
1334 *prrdev = rrdev; in dereference_rdev_and_rrdev()
1348 struct md_rdev *rdev, *rrdev; in wait_blocked_dev() local
1350 rdev = dereference_rdev_and_rrdev(&conf->mirrors[i], &rrdev); in wait_blocked_dev()
1356 if (rrdev && unlikely(test_bit(Blocked, &rrdev->flags))) { in wait_blocked_dev()
1357 atomic_inc(&rrdev->nr_pending); in wait_blocked_dev()
1358 blocked_rdev = rrdev; in wait_blocked_dev()
[all …]
Draid5-cache.c1873 struct md_rdev *rdev, *rrdev; in r5l_recovery_replay_one_stripe() local
1909 rrdev = rcu_dereference(conf->disks[disk_index].replacement); in r5l_recovery_replay_one_stripe()
1910 if (rrdev) { in r5l_recovery_replay_one_stripe()
1911 atomic_inc(&rrdev->nr_pending); in r5l_recovery_replay_one_stripe()
1913 sync_page_io(rrdev, sh->sector, PAGE_SIZE, in r5l_recovery_replay_one_stripe()
1916 rdev_dec_pending(rrdev, rrdev->mddev); in r5l_recovery_replay_one_stripe()
Draid5.c1077 struct md_rdev *rdev, *rrdev = NULL; in ops_run_io() local
1102 rrdev = rcu_dereference(conf->disks[i].replacement); in ops_run_io()
1106 rdev = rrdev; in ops_run_io()
1107 rrdev = NULL; in ops_run_io()
1112 if (rdev == rrdev) in ops_run_io()
1114 rrdev = NULL; in ops_run_io()
1116 if (test_bit(R5_ReadRepl, &head_sh->dev[i].flags) && rrdev) in ops_run_io()
1117 rdev = rrdev; in ops_run_io()
1118 rrdev = NULL; in ops_run_io()
1125 if (rrdev && test_bit(Faulty, &rrdev->flags)) in ops_run_io()
[all …]