Lines Matching refs:disk
48 * apart on disk, there are adjacent stripes.
311 * Update disk head position estimator based on IRQ completion info.
322 * Find the disk number which triggered given bio
685 * This routine returns the disk from which the requested read should
687 * number - if this matches on the next IO then we use the last disk.
688 * There is also a per-disk 'last know head position' sector that is
691 * perfect sequential match then we pick the disk whose head is closest.
708 int disk, slot;
732 * the resync window. We take the first readable disk when
751 disk = r10_bio->devs[slot].devnum;
752 rdev = rcu_dereference(conf->mirrors[disk].replacement);
762 rdev = rcu_dereference(conf->mirrors[disk].rdev);
830 conf->mirrors[disk].head_position);
886 /* flush any pending bitmap writes to disk
1149 int disk;
1157 disk = r10_bio->devs[slot].devnum;
1158 err_rdev = rcu_dereference(conf->mirrors[disk].rdev);
1418 * only applies if the disk is missing,
1691 pr_debug(" disk %d, wo:%d, o:%d, dev:%s\n",
3747 struct raid10_info *disk;
3800 disk = conf->mirrors + disk_idx;
3803 if (disk->replacement)
3805 disk->replacement = rdev;
3807 if (disk->rdev)
3809 disk->rdev = rdev;
3823 disk->head_position = 0;
3861 disk = conf->mirrors + i;
3863 if (!disk->rdev && disk->replacement) {
3865 disk->rdev = disk->replacement;
3866 disk->replacement = NULL;
3867 clear_bit(Replacement, &disk->rdev->flags);
3870 if (!disk->rdev ||
3871 !test_bit(In_sync, &disk->rdev->flags)) {
3872 disk->head_position = 0;
3874 if (disk->rdev &&
3875 disk->rdev->saved_raid_disk < 0)
3879 if (disk->replacement &&
3880 !test_bit(In_sync, &disk->replacement->flags) &&
3881 disk->replacement->saved_raid_disk < 0) {
3885 disk->recovery_disabled = mddev->recovery_disabled - 1;
4395 * yet recorded as 'safe' (i.e. in metadata on disk) then