Searched refs:rrdev (Results 1 - 2 of 2) sorted by relevance

/linux-4.1.27/drivers/md/
H A Draid10.c1315 struct md_rdev *rrdev = rcu_dereference( __make_request() local
1317 if (rdev == rrdev) __make_request()
1318 rrdev = NULL; __make_request()
1324 if (rrdev && unlikely(test_bit(Blocked, &rrdev->flags))) { __make_request()
1325 atomic_inc(&rrdev->nr_pending); __make_request()
1326 blocked_rdev = rrdev; __make_request()
1332 if (rrdev && (test_bit(Faulty, &rrdev->flags) __make_request()
1333 || test_bit(Unmerged, &rrdev->flags))) __make_request()
1334 rrdev = NULL; __make_request()
1339 if (!rdev && !rrdev) { __make_request()
1389 if (rrdev) { __make_request()
1391 atomic_inc(&rrdev->nr_pending); __make_request()
H A Draid5.c895 struct md_rdev *rdev, *rrdev = NULL; ops_run_io() local
921 rrdev = rcu_dereference(conf->disks[i].replacement); ops_run_io()
922 smp_mb(); /* Ensure that if rrdev is NULL, rdev won't be */ ops_run_io()
925 rdev = rrdev; ops_run_io()
926 rrdev = NULL; ops_run_io()
931 if (rdev == rrdev) ops_run_io()
933 rrdev = NULL; ops_run_io()
935 if (test_bit(R5_ReadRepl, &head_sh->dev[i].flags) && rrdev) ops_run_io()
936 rdev = rrdev; ops_run_io()
937 rrdev = NULL; ops_run_io()
944 if (rrdev && test_bit(Faulty, &rrdev->flags)) ops_run_io()
945 rrdev = NULL; ops_run_io()
946 if (rrdev) ops_run_io()
947 atomic_inc(&rrdev->nr_pending); ops_run_io()
952 * on the replacement, so we don't to check rrdev. ops_run_io()
1030 if (rrdev) ops_run_io()
1039 if (rrdev) { ops_run_io()
1042 md_sync_acct(rrdev->bdev, STRIPE_SECTORS); ops_run_io()
1047 rbi->bi_bdev = rrdev->bdev; ops_run_io()
1062 + rrdev->new_data_offset); ops_run_io()
1065 + rrdev->data_offset); ops_run_io()
1085 if (!rdev && !rrdev) { ops_run_io()

Completed in 105 milliseconds