Re: [PATCH RFC] 1/2 central workspace for zlib

From: Jörn Engel (joern@wohnheim.fh-wedel.de)
Date: Sat May 31 2003 - 01:52:29 EST


On Fri, 30 May 2003 17:14:10 -0700, David S. Miller wrote:
>
> Actually, your idea is interesting. Are you going to use
> per-cpu workspaces?

Yes, I already am.

> I think the best scheme is 2 per-cpu workspaces, one for
> normal and one for softirq context.

Agreed. Current patch doesn't cover softirq context yet.

> No locking needed whatsoever. I hope it can work :-)

How about preemption? zlib operations take their time, so at least on
up, it makes sense to preempt them, when not in softirq context. Can
this still be done lockless?

Jörn

--
More computing sins are committed in the name of efficiency (without
necessarily achieving it) than for any other single reason - including
blind stupidity.
-- W. A. Wulf
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/