vmalloc for zlib workspace

Jörn Engel joern at wohnheim.fh-wedel.de
Mon May 26 06:19:19 EDT 2003


On Mon, 26 May 2003 10:53:56 +0100, David Woodhouse wrote:
> On Mon, 2003-05-26 at 10:40, Jörn Engel wrote:
> > 
> > Now every subsystem using zlib can reuse the same workspace, jffs2
> > anole would save one, a big fat system (TM) with jffs2, cramfs, ppp
> > and additional patches would save quite a bit more.  And those systems
> > do exist, no kidding.
> 
> Would be cute -- we need to ensure that it doesn't deadlock. In what
> context does PPP do its decompression? I have a feeling it does it in BH
> or softirq context, hence isn't allowed to attempt to obtain a
> semaphore. cramfs and jffs2 could almost certainly share though.

Not sure right now, the ppp code doesn't make that clear at first
glance.  But if it calls zlib from softirq context, that should be
changed as well.  It would shorten the buffers a little and process
accounting should be a bit more accurate.

Jörn

-- 
And spam is a useful source of entropy for /dev/random too!
-- Jasmine Strong



More information about the linux-mtd mailing list