From: Andi Kleen <ak@suse.de>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>,
linux-kernel@vger.kernel.org, Ingo Molnar <mingo@elte.hu>,
randy.dunlap@oracle.com, paulus@samba.org,
benh@kernel.crashing.org, David Miller <davem@davemloft.net>
Subject: Re: [patch] Let smp_call_function_single return -EBUSY.
Date: Tue, 15 May 2007 01:24:40 +0200 [thread overview]
Message-ID: <200705150124.41486.ak@suse.de> (raw)
In-Reply-To: <20070514121137.ddcc3f5a.akpm@linux-foundation.org>
On Monday 14 May 2007 21:11, Andrew Morton wrote:
> On Mon, 14 May 2007 11:23:17 +0200
>
> Heiko Carstens <heiko.carstens@de.ibm.com> wrote:
> > From: Heiko Carstens <heiko.carstens@de.ibm.com>
> >
> > All architectures that have an implementation of smp_call_function_single
> > let it return -EBUSY if it is asked to execute func on the current cpu.
> > Therefore the UP version must always return -EBUSY.
>
> smp_call_function_single() is a mess.
>
> - it's unclear to me why smp_call_function_single(cpu, ...) doesn't just
> call the darn function if cpu==smp_processor_id().
I always wondered that too.
Also I think we really need a cpu notifier that does smp_call_single
automatically; i find myself reimplementing that multiple times.
> - it's unclear to me why smp_call_function_single(cpu, ...) doesn't just
> call the darn function if CONFIG_SMP=n.
Yes.
>
> - it's unclear to me why smp_call_function_single(cpu, ...) isn't called
> smp_call_function_on(cpu, ...)
>
> - the x86_64 version doesn't return -EBUSY: it returns zero. Despite its
> claim "Retrurns 0 on success, else a negative status code.".
Will fix.
-Andi
next prev parent reply other threads:[~2007-05-14 23:27 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-14 9:23 [patch] Let smp_call_function_single return -EBUSY Heiko Carstens
2007-05-14 19:11 ` Andrew Morton
2007-05-14 19:18 ` Andrew Morton
2007-05-14 23:24 ` Andi Kleen [this message]
2007-06-07 16:04 ` Satyam Sharma
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=200705150124.41486.ak@suse.de \
--to=ak@suse.de \
--cc=akpm@linux-foundation.org \
--cc=benh@kernel.crashing.org \
--cc=davem@davemloft.net \
--cc=heiko.carstens@de.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=paulus@samba.org \
--cc=randy.dunlap@oracle.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