]> git.baikalelectronics.ru Git - kernel.git/commit
printk: Implement some unlocked kmsg_dump functions
authorAnton Vorontsov <anton.vorontsov@linaro.org>
Sat, 21 Jul 2012 00:28:07 +0000 (17:28 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 21 Jul 2012 17:34:00 +0000 (10:34 -0700)
commitd983e8fb3b9a60056f0058806a5f72e909e3790f
tree6aaba38b5604be6ad3e9f7aa40239b5c3f9444e1
parentfa1fe7cdea2bb43690c9a4fd880b6153b9c2477b
printk: Implement some unlocked kmsg_dump functions

If used from KDB, the locked variants are prone to deadlocks (suppose we
got to the debugger w/ the logbuf lock held).

So, we have to implement a few routines that grab no logbuf lock.

Yet we don't need these functions in modules, so we don't export them.

Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/kmsg_dump.h
kernel/printk.c