|
@@ -111,8 +111,11 @@ static void check_hung_task(struct task_struct *t, unsigned long timeout)
|
|
|
|
|
|
|
|
trace_sched_process_hang(t);
|
|
trace_sched_process_hang(t);
|
|
|
|
|
|
|
|
- if (!sysctl_hung_task_warnings && !sysctl_hung_task_panic)
|
|
|
|
|
- return;
|
|
|
|
|
|
|
+ if (sysctl_hung_task_panic) {
|
|
|
|
|
+ console_verbose();
|
|
|
|
|
+ hung_task_show_lock = true;
|
|
|
|
|
+ hung_task_call_panic = true;
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
/*
|
|
/*
|
|
|
* Ok, the task did not get scheduled for more than 2 minutes,
|
|
* Ok, the task did not get scheduled for more than 2 minutes,
|
|
@@ -134,11 +137,6 @@ static void check_hung_task(struct task_struct *t, unsigned long timeout)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
touch_nmi_watchdog();
|
|
touch_nmi_watchdog();
|
|
|
-
|
|
|
|
|
- if (sysctl_hung_task_panic) {
|
|
|
|
|
- hung_task_show_lock = true;
|
|
|
|
|
- hung_task_call_panic = true;
|
|
|
|
|
- }
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
/*
|