From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: Stefan Bader <stefan.bader@canonical.com>,
Jan Beulich <JBeulich@suse.com>,
"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: [PATCH] xen: Send spinlock IPI to all waiters
Date: Fri, 15 Feb 2013 10:14:06 -0500 [thread overview]
Message-ID: <20130215151406.GD12178@phenom.dumpdata.com> (raw)
In-Reply-To: <1360927883.31407.11.camel@zakaz.uk.xensource.com>
On Fri, Feb 15, 2013 at 11:31:23AM +0000, Ian Campbell wrote:
> On Fri, 2013-02-15 at 11:26 +0000, Jan Beulich wrote:
> > >>> On 15.02.13 at 12:10, Ian Campbell <Ian.Campbell@citrix.com> wrote:
> > > On Fri, 2013-02-15 at 10:52 +0000, Stefan Bader wrote:
> > >> diff --git a/arch/x86/xen/spinlock.c b/arch/x86/xen/spinlock.c
> > >> index 83e866d..f7a080e 100644
> > >> --- a/arch/x86/xen/spinlock.c
> > >> +++ b/arch/x86/xen/spinlock.c
> > >> @@ -328,7 +328,6 @@ static noinline void xen_spin_unlock_slow(struct
> > > xen_spinlock *xl)
> > >> if (per_cpu(lock_spinners, cpu) == xl) {
> > >> ADD_STATS(released_slow_kicked, 1);
> > >> xen_send_IPI_one(cpu, XEN_SPIN_UNLOCK_VECTOR);
> > >> - break;
> > >
> > > It would be more efficient to build a mask and use xen_send_IPI_mask().
> >
> > In order for __xen_send_IPI_mask() to then take the list apart
> > again and call xen_send_IPI_one()? There's no batching
> > implemented currently...
>
> Oh, I simply assumed it must obviously do that!
Perhaps if it was done via a multicall? We could batch then things up. But I recall
you saying that for homogeneous calls it is silly to use multicalls.
>
> Ian.
>
next prev parent reply other threads:[~2013-02-15 15:14 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-15 10:52 [PATCH] xen: Send spinlock IPI to all waiters Stefan Bader
2013-02-15 11:10 ` Ian Campbell
2013-02-15 11:26 ` Jan Beulich
2013-02-15 11:31 ` Ian Campbell
2013-02-15 15:14 ` Konrad Rzeszutek Wilk [this message]
2013-02-15 15:46 ` Jan Beulich
2013-02-15 15:59 ` Ian Campbell
2013-02-15 15:05 ` Konrad Rzeszutek Wilk
-- strict thread matches above, loose matches on Subject: below --
2013-02-15 11:20 Jan Beulich
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=20130215151406.GD12178@phenom.dumpdata.com \
--to=konrad.wilk@oracle.com \
--cc=Ian.Campbell@citrix.com \
--cc=JBeulich@suse.com \
--cc=stefan.bader@canonical.com \
--cc=xen-devel@lists.xen.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.