From: Andrew Morton <akpm@osdl.org>
To: Ravikiran G Thirumalai <kiran@scalex86.org>
Cc: linux-kernel@vger.kernel.org,
Christoph Lameter <clameter@engr.sgi.com>,
Pekka J Enberg <penberg@cs.Helsinki.FI>,
ego@in.ibm.com, vatsa@in.ibm.com,
"Benzi Galili (Benzi@ScaleMP.com)" <benzi@scalemp.com>,
Alok Kataria <alok.kataria@calsoftinc.com>,
shai@scalex86.org
Subject: Re: [rfc] [patch] mm: Slab - Eliminate lock_cpu_hotplug from slab
Date: Sat, 28 Oct 2006 09:49:31 -0700 [thread overview]
Message-ID: <20061028094931.65a0f218.akpm@osdl.org> (raw)
In-Reply-To: <20061028011919.GA4653@localhost.localdomain>
On Fri, 27 Oct 2006 18:19:19 -0700
Ravikiran G Thirumalai <kiran@scalex86.org> wrote:
> Another note. Looks like a cpu hotplug event can send CPU_UP_CANCELED to
> a registered subsystem even if the subsystem did not receive CPU_UP_PREPARE.
> This could be due to a subsystem registered for notification earlier than
> the current subsystem crapping out with NOTIFY_BAD. Badness can occur with
> in the CPU_UP_CANCELED code path at slab if this happens (The same would
> apply for workqueue.c as well).
yup, cancellation doesn't work at present.
> To overcome this, we might have to use either
> a) a per subsystem flag and avoid handling of CPU_UP_CANCELED, or
> b) Use a special notifier events like LOCK_ACQUIRE/RELEASE as Gautham was
> using in his experiments, or
> c) Do not send CPU_UP_CANCELED to a subsystem which did not receive
> CPU_UP_PREPARE.
>
> I would prefer c).
c) would work. I guess we could do that by simply counting the number of
called handlers rather than having to record state within each one.
It would require changes to the notifier_chain API, but I think the changes
are needed - the problem is general. Something like:
int __raw_notifier_call_chain(struct raw_notifier_head *nh,
unsigned long val, void *v, unsigned nr_to_call, int *nr_called);
int raw_notifier_call_chain(struct raw_notifier_head *nh,
unsigned long val, void *v)
{
return __raw_notifier_call_chain(nh, val, v, -1, NULL);
}
next prev parent reply other threads:[~2006-10-28 16:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-28 1:19 [rfc] [patch] mm: Slab - Eliminate lock_cpu_hotplug from slab Ravikiran G Thirumalai
2006-10-28 16:49 ` Andrew Morton [this message]
2006-10-30 10:22 ` Srivatsa Vaddagiri
2006-10-31 3:51 ` Ravikiran G Thirumalai
2006-10-31 4:21 ` Srivatsa Vaddagiri
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=20061028094931.65a0f218.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=alok.kataria@calsoftinc.com \
--cc=benzi@scalemp.com \
--cc=clameter@engr.sgi.com \
--cc=ego@in.ibm.com \
--cc=kiran@scalex86.org \
--cc=linux-kernel@vger.kernel.org \
--cc=penberg@cs.Helsinki.FI \
--cc=shai@scalex86.org \
--cc=vatsa@in.ibm.com \
/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