Skip to content

Commit 1fa63a8

Browse files
Jiri KosinaIngo Molnar
authored andcommitted
printk: robustify printk, update comment
Remove the comment describing the possibility of printk() deadlocking on runqueue lock. Signed-off-by: Jiri Kosina <jkosina@suse.cz> Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Signed-off-by: Ingo Molnar <mingo@elte.hu>
1 parent fa33507 commit 1fa63a8

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

kernel/printk.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -577,9 +577,6 @@ static int have_callable_console(void)
577577
* @fmt: format string
578578
*
579579
* This is printk(). It can be called from any context. We want it to work.
580-
* Be aware of the fact that if oops_in_progress is not set, we might try to
581-
* wake klogd up which could deadlock on runqueue lock if printk() is called
582-
* from scheduler code.
583580
*
584581
* We try to grab the console_sem. If we succeed, it's easy - we log the output and
585582
* call the console drivers. If we fail to get the semaphore we place the output

0 commit comments

Comments
 (0)