vmalloc for zlib workspace

Jörn Engel joern at wohnheim.fh-wedel.de
Mon May 26 10:48:07 EDT 2003


On Mon, 26 May 2003 14:57:49 +0100, David Woodhouse wrote:
> > preempt_disable();
> > down();
> 
>  // which causes BUG() due to scheduling with preemption disabled.
> 
> > //long processing time
> > up();
> > preempt_enable();
> > 
> > That way, preemption will be turned of on all CPUs for a long time,
> 
> Is that true? I thought not.

No, it isn't.  Sometimes I tend to misread things.  But still, the new
design appears to be better, imho.

Jörn

-- 
The competent programmer is fully aware of the strictly limited size of
his own skull; therefore he approaches the programming task in full
humility, and among other things he avoids clever tricks like the plague. 
-- Edsger W. Dijkstra



More information about the linux-mtd mailing list