vmalloc for zlib workspace

David Woodhouse dwmw2 at infradead.org
Mon May 26 09:57:49 EDT 2003


On Mon, 2003-05-26 at 14:48, Jörn Engel wrote:
> On Mon, 26 May 2003 14:38:28 +0100, David Woodhouse wrote:
> > On Mon, 2003-05-26 at 13:35, Jörn Engel wrote:
> > > A workmate of mine had another good point.  The mutex and workspace
> > > could be two arrays instead, with one member per CPU.  That way, we
> > > don't need a CONFIG_TINY option and the code scales automatically from
> > > small embedded to multi-gigabyte SMP.
> > 
> > Assuming you add a preempt_disable()... in one of the pieces of code
> > which was one of the main culprits for non-voluntary scheduling anyway.
> 
> Good point!
> 
> 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.

-- 
dwmw2





More information about the linux-mtd mailing list