From: "Jan Beulich" Subject: Re: [PATCH] correct mis-conversion set_bit() -> __cpumask_set_cpu() by 4aaca0e9cd Date: Mon, 23 Feb 2015 13:47:40 +0000 Message-ID: <54EB3D8C0200007800062837@mail.emea.novell.com> References: <54EB17A802000078000626F9@mail.emea.novell.com> <54EB1690.3040709@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YPtMZ-0008G9-D8 for xen-devel@lists.xenproject.org; Mon, 23 Feb 2015 13:47:55 +0000 In-Reply-To: <54EB1690.3040709@citrix.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andrew Cooper Cc: Keir Fraser , Ian Jackson , Tim Deegan , Ian Campbell , Sander Eikelenboom , xen-devel List-Id: xen-devel@lists.xenproject.org >>> On 23.02.15 at 13:01, wrote: > On 23/02/15 11:06, Jan Beulich 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 >> Signed-off-by: Jan Beulich > > Insofar as this clearly corrects the identified regression, > > Reviewed-by: Andrew Cooper > > However, I am still not convinced that the resulting code is actually > correct. > > batch_mask is a cpumask_t and used properly as a cpumask in > cpumask_raise_softirq(). It is wrong to be putting softirq indices into > it here. Ah, now I see (somehow I didn't pay close enough attention to what you said in the morning) - the code was wrong even before that change. In that case - yes, let's not fix it the wrong way. Jan