From: Ian Campbell <ian.campbell@citrix.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: Sander Eikelenboom <linux@eikelenboom.it>,
Tim Deegan <tim@xen.org>, Keir Fraser <keir@xen.org>,
Ian Jackson <Ian.Jackson@eu.citrix.com>,
xen-devel <xen-devel@lists.xenproject.org>
Subject: Re: [PATCH] correct mis-conversion set_bit() -> __cpumask_set_cpu() by 4aaca0e9cd
Date: Fri, 27 Feb 2015 10:34:58 +0000 [thread overview]
Message-ID: <1425033298.14641.157.camel@citrix.com> (raw)
In-Reply-To: <54F02BD50200007800064679@mail.emea.novell.com>
On Fri, 2015-02-27 at 07:33 +0000, Jan Beulich wrote:
> >>> On 26.02.15 at 17:53, <linux@eikelenboom.it> wrote:
>
> > Monday, February 23, 2015, 12:06:00 PM, you wrote:
> >
> >> I have no idea how I came to use __cpumask_set_cpu() there, the
> >> conversion should have been set_bit() -> __set_bit(). The wrong
> >> construct results in problems on systems with relatively few CPUs.
> >
> >> Reported-by: Sander Eikelenboom <linux@eikelenboom.it>
> >> Signed-off-by: Jan Beulich <jbeulich@suse.com>
> >
> >> --- a/xen/common/softirq.c
> >> +++ b/xen/common/softirq.c
> >> @@ -106,7 +106,7 @@ void cpu_raise_softirq(unsigned int cpu,
> >> if ( !per_cpu(batching, this_cpu) || in_irq() )
> >> smp_send_event_check_cpu(cpu);
> >> else
> >> - __cpumask_set_cpu(nr, &per_cpu(batch_mask, this_cpu));
> >> + __set_bit(nr, &per_cpu(batch_mask, this_cpu));
> >> }
> >>
> >> void cpu_raise_softirq_batch_begin(void)
> >
> > Hi Jan,
> >
> > Any reason this wasn't applied to staging yet ?
>
> It didn't get ack-ed
Sorry, I thought this was an x86 patch for some reason and therefore
that Andrew's ack was sufficient.
For v2 of the patch (<54EB3D880200007800062834@mail.emea.novell.com>,
using __cpumask_set_cpu(cpu, ...):
Acked-by: Ian Campbell <ian.campbell@citrix.com>
prev parent reply other threads:[~2015-02-27 10:35 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-23 11:06 [PATCH] correct mis-conversion set_bit() -> __cpumask_set_cpu() by 4aaca0e9cd Jan Beulich
2015-02-23 11:17 ` Sander Eikelenboom
2015-02-23 12:01 ` Andrew Cooper
2015-02-23 13:47 ` Jan Beulich
2015-02-26 16:53 ` Sander Eikelenboom
2015-02-27 7:33 ` Jan Beulich
2015-02-27 10:34 ` Ian Campbell [this message]
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=1425033298.14641.157.camel@citrix.com \
--to=ian.campbell@citrix.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=JBeulich@suse.com \
--cc=keir@xen.org \
--cc=linux@eikelenboom.it \
--cc=tim@xen.org \
--cc=xen-devel@lists.xenproject.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.