Re: Re: fr1-2.16 patch for 2.6.10 kernel
"Peter T. Breuer" <[email protected]>
| Newsgroups | gmane.linux.enbd.general |
|---|---|
| Message-ID | <[email protected]> |
"Also sprach Peter T. Breuer:"
> Actually, one can do a little better. Make the whole (2.6.8.1) routine
Nah .. leave the rdev != *rdevp out of it. I don't want to mess up the
count. Leave it to the rest of the existing code to worry about what
happens if we choose the same disk again.
> for (; i < disks; i++) {
> mdk_rdev_t *rdev = conf->mirrors[i].rdev;
> if (rdev && rdev != *rdevp && rdev->in_sync) {
> *rdevp = rdev;
> atomic_inc(&rdev->nr_pending);
> spin_unlock_irq(&conf->device_lock);
> return i;
> }
> }
Peter