]> 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)
commitb4e9ff38c98f0dc35df50bc9615c6af093d226a1
tree6aaba38b5604be6ad3e9f7aa40239b5c3f9444e1
parent56b4eeccef5dc50b546a9f9d88e944a3e2d47767
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