Re: [PATCH 3.4 098/107] kernel/watchdog.c: touch_nmi_watchdog should only touch local cpu not every one

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

 



>> diff --git a/kernel/watchdog.c b/kernel/watchdog.c
>> index 991aa93..7527c8c 100644
>> --- a/kernel/watchdog.c
>> +++ b/kernel/watchdog.c
>> @@ -162,6 +162,14 @@ void touch_nmi_watchdog(void)
>>  				per_cpu(watchdog_nmi_touch, cpu) = true;
>>  		}
>>  	}
> 
> The above for-loop was to be replaced by the non-for-loop below.
> 
> The above for-loop is the problem this patch was solving, so keeping it
> around does not solve anything.  :-)
> 

OOps, my fault. I'll remove this for-loop. Thanks for your review!

> 
>> +	/*
>> +	 * Using __raw here because some code paths have
>> +	 * preemption enabled.  If preemption is enabled
>> +	 * then interrupts should be enabled too, in which
>> +	 * case we shouldn't have to worry about the watchdog
>> +	 * going off.
>> +	 */
>> +	__raw_get_cpu_var(watchdog_nmi_touch) = true;
>>  	touch_softlockup_watchdog();
>>  }
>>  EXPORT_SYMBOL(touch_nmi_watchdog);
> 
> Cheers,
> Don
> .
> 

--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]