From: "Jan Beulich" Subject: [PATCH] correct mis-conversion set_bit() -> __cpumask_set_cpu() by 4aaca0e9cd Date: Mon, 23 Feb 2015 11:06:00 +0000 Message-ID: <54EB17A802000078000626F9@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__Part5663E488.2__=" Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YPqpy-0003pk-4i for xen-devel@lists.xenproject.org; Mon, 23 Feb 2015 11:06:06 +0000 List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel Cc: Ian Campbell , Sander Eikelenboom , Keir Fraser , Ian Jackson , Tim Deegan List-Id: xen-devel@lists.xenproject.org This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__Part5663E488.2__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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 Signed-off-by: Jan Beulich --- 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)); } =20 void cpu_raise_softirq_batch_begin(void) --=__Part5663E488.2__= Content-Type: text/plain; name="cpumask-relax-fix.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="cpumask-relax-fix.patch" correct mis-conversion set_bit() -> __cpumask_set_cpu() by 4aaca0e9cd=0A=0A= I have no idea how I came to use __cpumask_set_cpu() there, the=0Aconversio= n should have been set_bit() -> __set_bit(). The wrong=0Aconstruct results = in problems on systems with relatively few CPUs.=0A=0AReported-by: Sander = Eikelenboom =0ASigned-off-by: Jan Beulich =0A=0A--- a/xen/common/softirq.c=0A+++ b/xen/common/softirq.c=0A@@ = -106,7 +106,7 @@ void cpu_raise_softirq(unsigned int cpu,=0A if ( = !per_cpu(batching, this_cpu) || in_irq() )=0A smp_send_event_check_= cpu(cpu);=0A else=0A- __cpumask_set_cpu(nr, &per_cpu(batch_mask,= this_cpu));=0A+ __set_bit(nr, &per_cpu(batch_mask, this_cpu));=0A = }=0A =0A void cpu_raise_softirq_batch_begin(void)=0A --=__Part5663E488.2__= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --=__Part5663E488.2__=--