summaryrefslogtreecommitdiff
path: root/kernel/watchdog.c
diff options
context:
space:
mode:
authorPetr Mladek <pmladek@suse.com>2022-05-23 10:55:39 +0200
committerPetr Mladek <pmladek@suse.com>2022-05-23 10:55:39 +0200
commit1c6fd59943a630f087b4b3089aefdcb0bf43cca0 (patch)
tree4806aa6762bde2835b2be5f2ee4c8be40536e910 /kernel/watchdog.c
parenta5c7a39f508ae1fd3288493b96dd26079bae41bf (diff)
parent701850dc0c31bfadf75a0a74af7d2c97859945ec (diff)
downloadlinux-1c6fd59943a630f087b4b3089aefdcb0bf43cca0.tar.gz
linux-1c6fd59943a630f087b4b3089aefdcb0bf43cca0.tar.bz2
linux-1c6fd59943a630f087b4b3089aefdcb0bf43cca0.zip
Merge branch 'rework/kthreads' into for-linus
Diffstat (limited to 'kernel/watchdog.c')
-rw-r--r--kernel/watchdog.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/watchdog.c b/kernel/watchdog.c
index 9166220457bc..40024e03d422 100644
--- a/kernel/watchdog.c
+++ b/kernel/watchdog.c
@@ -424,6 +424,8 @@ static enum hrtimer_restart watchdog_timer_fn(struct hrtimer *hrtimer)
/* Start period for the next softlockup warning. */
update_report_ts();
+ printk_prefer_direct_enter();
+
pr_emerg("BUG: soft lockup - CPU#%d stuck for %us! [%s:%d]\n",
smp_processor_id(), duration,
current->comm, task_pid_nr(current));
@@ -442,6 +444,8 @@ static enum hrtimer_restart watchdog_timer_fn(struct hrtimer *hrtimer)
add_taint(TAINT_SOFTLOCKUP, LOCKDEP_STILL_OK);
if (softlockup_panic)
panic("softlockup: hung tasks");
+
+ printk_prefer_direct_exit();
}
return HRTIMER_RESTART;