> -----Original Message-----
> From: Ulf Dambacher [mailto:[EMAIL PROTECTED]]
> Sent: Montag, 11. September 2000 11:19
> To: Klaudius Foeger
> Cc: [EMAIL PROTECTED]
> Subject: patch for Re: 2.2.16-raid0.90 
> 
> 
> Thanks for the Patch, Klaudius
> 
> I will try it today evening and look how it works.
> Did you supply it to Ingo for suggestion or is he aware of this bug?
> 
> bye
>       Ulf
> 

Yes, I sent it to Ingo some weeks ago.

AFAIK for kernel 2.4 it's not relevant, because 2.4 RAID1 contains
Mika Kouppala's RAID1 read balancing code.


Klaudius

> > I had the same problem and found the reason in the 
> read-balancing code,
> > which doesn't recognize, that a disk had been set faulty. 
> So it tries to
> > read
> > from a logically unavailable disk and the read access to 
> device [00:00]
> > generates the Oops.
> > 
> > With this small patch I could solve it on my machine:
> > 
> > --- drivers/block/raid1.c.orig  Thu Sep  7 18:20:46 2000
> > +++ drivers/block/raid1.c       Thu Sep  7 18:26:14 2000
> > @@ -367,8 +367,11 @@
> >         int i;
> >  
> >         for (i = 0; i < disks; i++)
> > -               if (conf->mirrors[i].next == target)
> > +               if (conf->mirrors[i].next == target) {
> >                         conf->mirrors[i].next =
> > conf->mirrors[target].next;
> > +                       if (conf->last_used == target)
> > +                               conf->last_used = i;
> > +               }
> >  }
> >  
> >  #define LAST_DISK KERN_ALERT \
> > 
> > 
> > 
> > Klaudius
> 
> --
> Ulf Dambacher
> Tel.:   +49 721 38 42 550
> eMail:  [EMAIL PROTECTED]
> 
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to [EMAIL PROTECTED]

Reply via email to