]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - kernel/hung_task.c
kernel/hung_task.c: force console verbose before panic
[mirror_ubuntu-bionic-kernel.git] / kernel / hung_task.c
index 0cec1241e26f64bab7b7a9b1ff8e956a86bb91ca..f9aaf4994062f246783cee6c59306950c6df4566 100644 (file)
@@ -103,8 +103,11 @@ static void check_hung_task(struct task_struct *t, unsigned long timeout)
 
        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,
@@ -126,11 +129,6 @@ static void check_hung_task(struct task_struct *t, unsigned long timeout)
        }
 
        touch_nmi_watchdog();
-
-       if (sysctl_hung_task_panic) {
-               hung_task_show_lock = true;
-               hung_task_call_panic = true;
-       }
 }
 
 /*