Lines Matching refs:mrdev
3300 struct md_rdev *mrdev, *mreplace; in raid10_sync_request() local
3302 mrdev = mirror->rdev; in raid10_sync_request()
3305 if (mrdev && (test_bit(Faulty, &mrdev->flags) || in raid10_sync_request()
3306 test_bit(In_sync, &mrdev->flags))) in raid10_sync_request()
3307 mrdev = NULL; in raid10_sync_request()
3311 if (!mrdev && !mreplace) in raid10_sync_request()
3341 if (mrdev) in raid10_sync_request()
3342 atomic_inc(&mrdev->nr_pending); in raid10_sync_request()
3426 if (mrdev) { in raid10_sync_request()
3433 + mrdev->data_offset; in raid10_sync_request()
3434 bio_set_dev(bio, mrdev->bdev); in raid10_sync_request()
3470 if (mrdev && !test_bit(In_sync, in raid10_sync_request()
3471 &mrdev->flags) in raid10_sync_request()
3473 mrdev, in raid10_sync_request()
3498 if (mrdev) in raid10_sync_request()
3499 rdev_dec_pending(mrdev, mddev); in raid10_sync_request()
3504 if (mrdev) in raid10_sync_request()
3505 rdev_dec_pending(mrdev, mddev); in raid10_sync_request()