Re: -next March 3: Boot failure on x86 (Oops)

Tejun Heo
2010-03-05T13:25:39Z

On 03/05/2010 04:47 PM, Sachin Sant wrote:
>> diff --git a/mm/percpu.c b/mm/percpu.c
>> index 768419d..f1ed9ea 100644
>> --- a/mm/percpu.c
>> +++ b/mm/percpu.c
>> @@ -373,11 +373,11 @@ static int pcpu_need_to_extend(struct pcpu_chunk
>> *chunk)
>> {
>> int new_alloc;
>>
>> - if (chunk->map_alloc >= chunk->map_used + 2)
>> + if (chunk->map_alloc >= chunk->map_used + 3)
>> return 0;
>>
>> new_alloc = PCPU_DFL_MAP_ALLOC;
>> - while (new_alloc < chunk->map_used + 2)
>> + while (new_alloc < chunk->map_used + 3)
>> new_alloc *= 2;
>>
>> return new_alloc;

This was a red herring. +2 is correct.

Thanks.

--
tejun