Re: 2.3.99pre8 RAID memory allocation

From: Andi Kleen (ak@suse.de)
Date: Sat May 13 2000 - 07:55:57 EST


On Sat, May 13, 2000 at 01:34:59PM +0200, Ingo Molnar wrote:
>
> On Sat, 13 May 2000, Andi Kleen wrote:
>
> > While reading 2.3.99pre8:
> >
> > + schedule_timeout(2);
>
> > Are you sure that you don't need a current->policy |= SCHED_YIELD
> > here ? Iirc the TCP code something did something very similar,
> > and the SCHED_YIELD had to be added to avoid mm deadlocks.
>
> thx, will add it. The above code is btw. buggy even with your fix, RAID1
> needs preallocation pool to be undeadlocked. [ problems with the above
> code were not seen in RL so far - at the point where the above allocation
> is done we _must not_ fail. (we can only reply with an IO error, which is
> way off.) ]

Understood. How many preallocated stripes are needed to be safe ?

-Andi

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon May 15 2000 - 21:00:22 EST