[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH] correct mis-conversion set_bit() -> __cpumask_set_cpu() by 4aaca0e9cd



>>> On 26.02.15 at 17:53, <linux@xxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxx>
>> Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
> 
>> --- 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 so far (and it was a little too early still to
ping it - I try to allow a week before doing so).

Jan


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.