Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/md/
Draid10.c1402 struct md_rdev *rrdev = rcu_dereference( in raid10_write_request() local
1404 if (rdev == rrdev) in raid10_write_request()
1405 rrdev = NULL; in raid10_write_request()
1411 if (rrdev && unlikely(test_bit(Blocked, &rrdev->flags))) { in raid10_write_request()
1412 atomic_inc(&rrdev->nr_pending); in raid10_write_request()
1413 blocked_rdev = rrdev; in raid10_write_request()
1418 if (rrdev && (test_bit(Faulty, &rrdev->flags))) in raid10_write_request()
1419 rrdev = NULL; in raid10_write_request()
1424 if (!rdev && !rrdev) { in raid10_write_request()
1473 if (rrdev) { in raid10_write_request()
[all …]
Draid5-cache.c1884 struct md_rdev *rdev, *rrdev; in r5l_recovery_replay_one_stripe() local
1920 rrdev = rcu_dereference(conf->disks[disk_index].replacement); in r5l_recovery_replay_one_stripe()
1921 if (rrdev) { in r5l_recovery_replay_one_stripe()
1922 atomic_inc(&rrdev->nr_pending); in r5l_recovery_replay_one_stripe()
1924 sync_page_io(rrdev, sh->sector, PAGE_SIZE, in r5l_recovery_replay_one_stripe()
1927 rdev_dec_pending(rrdev, rrdev->mddev); in r5l_recovery_replay_one_stripe()
Draid5.c1003 struct md_rdev *rdev, *rrdev = NULL; in ops_run_io() local
1028 rrdev = rcu_dereference(conf->disks[i].replacement); in ops_run_io()
1032 rdev = rrdev; in ops_run_io()
1033 rrdev = NULL; in ops_run_io()
1038 if (rdev == rrdev) in ops_run_io()
1040 rrdev = NULL; in ops_run_io()
1042 if (test_bit(R5_ReadRepl, &head_sh->dev[i].flags) && rrdev) in ops_run_io()
1043 rdev = rrdev; in ops_run_io()
1044 rrdev = NULL; in ops_run_io()
1051 if (rrdev && test_bit(Faulty, &rrdev->flags)) in ops_run_io()
[all …]