hung_task: Print message when hung_task_warnings gets down to zero.
PATCH 1/1 hung_task: Print message when hung_task_warnings gets down to zero.
It's useful to report it when hung_task_warnings gets down to zero, so that we can know if kernel log was lost or there is no hung task was detected.
Signed-off-by fuyuanli <[email protected]>
--- kernel/hung_task.c | 2 ++ 1 file changed, 2 insertions(+)
kernel/hung_task.c +2 -0
@@ -142,6 +142,8 @@ static void check_hung_task(struct task_struct *t, unsigned long timeout)if (sysctl_hung_task_all_cpu_backtrace) hung_task_show_all_bt = true; +if (!sysctl_hung_task_warnings) +pr_info ("Future hung task reports are suppressed, see sysctl kernel.hung_task_warnings\n" ); }touch_nmi_watchdog ();
Signature · 1 line
2.17.1
Quoted 5 lines · fuyuanli
It's useful to report it when
hung_task_warningsgets down to zero, so that we can know if kernel log was lost or there is no hung task was detected.Signed-off-by fuyuanli <[email protected]>
Looks good to me.
Reviewed-by Petr Mladek <[email protected]>
Best Regards,
Petr