Lines Matching refs:mrdev
3456 struct md_rdev *mrdev, *mreplace; in raid10_sync_request() local
3459 mrdev = rcu_dereference(mirror->rdev); in raid10_sync_request()
3462 if (mrdev && (test_bit(Faulty, &mrdev->flags) || in raid10_sync_request()
3463 test_bit(In_sync, &mrdev->flags))) in raid10_sync_request()
3464 mrdev = NULL; in raid10_sync_request()
3468 if (!mrdev && !mreplace) { in raid10_sync_request()
3502 if (mrdev) in raid10_sync_request()
3503 atomic_inc(&mrdev->nr_pending); in raid10_sync_request()
3590 if (mrdev) { in raid10_sync_request()
3597 + mrdev->data_offset; in raid10_sync_request()
3598 bio_set_dev(bio, mrdev->bdev); in raid10_sync_request()
3635 if (mrdev && !test_bit(In_sync, in raid10_sync_request()
3636 &mrdev->flags) in raid10_sync_request()
3638 mrdev, in raid10_sync_request()
3663 if (mrdev) in raid10_sync_request()
3664 rdev_dec_pending(mrdev, mddev); in raid10_sync_request()
3669 if (mrdev) in raid10_sync_request()
3670 rdev_dec_pending(mrdev, mddev); in raid10_sync_request()