From: "Jörn Engel" <joern@wohnheim.fh-wedel.de>
To: "David S. Miller" <davem@redhat.com>
Cc: jmorris@intercode.com.au, linux-mtd@lists.infradead.org,
linux-kernel@vger.kernel.org, kernel@kolivas.org
Subject: Re: [PATCH RFC] 1/2 central workspace for zlib
Date: Sat, 31 May 2003 10:11:29 +0200 [thread overview]
Message-ID: <20030531081129.GA26179@wohnheim.fh-wedel.de> (raw)
In-Reply-To: <20030531.005909.68051039.davem@redhat.com>
On Sat, 31 May 2003 00:59:09 -0700, David S. Miller wrote:
>
> You can't leave the per-cpu workspace in an indeterminate
> state, you'll context switch and meanwhile that workspace will
> be used by another client or you'll next get scheduled on
> a different cpu and use a different workspace.
Did you read the patch?
When getting scheduled, the workspace remains associated with the
owning process ( z->workspace, z->ws_num ). Other processes trying to
grab a workspace will get put on a waitqueue ( zlib_workspace_sem ).
The workspace is not exactly per cpu, it is per process. Just the
amount of workspaces happens to be equal to the amount of cpus in the
system, but a couple more or less should work just as well.
In softirq context you would be right. Preempt is disabled anyway and
cpu affinity comes for free.
Jörn
--
A defeated army first battles and then seeks victory.
-- Sun Tzu
next prev parent reply other threads:[~2003-05-31 7:58 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-30 14:49 Jörn Engel
2003-05-30 15:29 ` James Morris
2003-05-30 17:43 ` Jörn Engel
2003-05-31 0:14 ` David S. Miller
2003-05-31 6:48 ` Jörn Engel
2003-05-31 6:55 ` David S. Miller
2003-05-31 7:56 ` Jörn Engel
2003-05-31 7:59 ` David S. Miller
2003-05-31 8:11 ` Jörn Engel [this message]
2003-05-31 8:12 ` David S. Miller
2003-05-31 8:22 ` Con Kolivas
2003-06-01 1:25 ` Matt Mackall
2003-06-02 12:19 ` Jörn Engel
2003-05-31 9:09 ` Arjan van de Ven
2003-05-31 6:20 ` David S. Miller
2003-05-31 10:51 ` James Morris
2003-05-31 11:07 ` Jörn Engel
2003-06-02 15:15 ` matsunaga
2003-06-02 15:36 ` Jörn Engel
2003-06-02 15:40 ` David Woodhouse
2003-06-02 15:53 ` Jörn Engel
2003-06-02 15:59 ` David Woodhouse
2003-06-02 16:37 ` Jörn Engel
2003-06-02 19:36 ` David Woodhouse
2003-06-02 20:54 ` Jörn Engel
2003-06-02 16:07 ` matsunaga
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030531081129.GA26179@wohnheim.fh-wedel.de \
--to=joern@wohnheim.fh-wedel.de \
--cc=davem@redhat.com \
--cc=jmorris@intercode.com.au \
--cc=kernel@kolivas.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®