Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

check_hung_task(): unsigned sysctl_hung_task_warnings cannot be less than 0

Impact: fix warnings-limit cutoff check for debug feature

unsigned sysctl_hung_task_warnings cannot be less than 0

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>

authored by

Roel Kluin and committed by
Ingo Molnar
20195546 02d43b1d

+1 -1
+1 -1
kernel/softlockup.c
··· 188 188 if ((long)(now - t->last_switch_timestamp) < 189 189 sysctl_hung_task_timeout_secs) 190 190 return; 191 - if (sysctl_hung_task_warnings < 0) 191 + if (!sysctl_hung_task_warnings) 192 192 return; 193 193 sysctl_hung_task_warnings--; 194 194