• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/md/

Lines Matching refs:disk

52  * on disk, there are adjacent stripes.
246 * Update disk head position estimator based on IRQ completion info.
479 * This routine returns the disk from which the requested read should
481 * number - if this matches on the next IO then we use the last disk.
482 * There is also a per-disk 'last know head position' sector that is
485 * perfect sequential match then we pick the disk whose head is closest.
496 int disk, slot, nslot;
506 * the resync window. We take the first readable disk when
511 /* make sure that disk is operational */
513 disk = r10_bio->devs[slot].devnum;
515 while ((rdev = rcu_dereference(conf->mirrors[disk].rdev)) == NULL ||
521 disk = -1;
524 disk = r10_bio->devs[slot].devnum;
530 /* make sure the disk is operational */
532 disk = r10_bio->devs[slot].devnum;
533 while ((rdev=rcu_dereference(conf->mirrors[disk].rdev)) == NULL ||
538 disk = -1;
541 disk = r10_bio->devs[slot].devnum;
546 conf->mirrors[disk].head_position);
548 /* Find the disk whose head is closest,
565 disk = ndisk;
578 disk = ndisk;
587 if (disk >= 0 && (rdev=rcu_dereference(conf->mirrors[disk].rdev))!= NULL)
588 atomic_inc(&conf->mirrors[disk].rdev->nr_pending);
590 disk = -1;
593 return disk;
663 /* flush any pending bitmap writes to disk
880 int disk = read_balance(conf, r10_bio);
882 if (disk < 0) {
886 mirror = conf->mirrors + disk;
1073 printk(KERN_DEBUG " disk %d, wo:%d, o:%d, dev:%s\n",
1815 int disk;
2093 disk = 0;
2112 disk = i;
2281 mirror_info_t *disk;
2319 disk = conf->mirrors + disk_idx;
2321 disk->rdev = rdev;
2334 disk->head_position = 0;
2346 disk = conf->mirrors + i;
2348 if (!disk->rdev ||
2349 !test_bit(In_sync, &disk->rdev->flags)) {
2350 disk->head_position = 0;
2352 if (disk->rdev)