Re: [PATCH] check_hung_task(): unsigned sysctl_hung_task_warningscannot be less than 0

From: Ingo Molnar
Date: Wed Dec 03 2008 - 04:12:54 EST



* Roel Kluin <roel.kluin@xxxxxxxxx> wrote:

> unsigned sysctl_hung_task_warnings cannot be less than 0
>
> Signed-off-by: Roel Kluin <roel.kluin@xxxxxxxxx>
> ---
> in kernel/softlockup.c
>
> unsigned long __read_mostly sysctl_hung_task_warnings = 10;
> ...
> static void check_hung_task()
> {
> ...
> if (sysctl_hung_task_warnings < 0)
> return
> sysctl_hung_task_warnings--;

applied to tip/core/urgent, thanks Roel!

Note, i changed the check to !0 instead - see below.

Ingo

-------------->