]> err.no Git - linux-2.6/commit
[PATCH] Provide better printk() support for SMP machines
authorDavid Howells <dhowells@redhat.com>
Tue, 6 Sep 2005 22:16:34 +0000 (15:16 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 7 Sep 2005 23:57:18 +0000 (16:57 -0700)
commitfe21773d655c2c64641ec2cef499289ea175c817
treeebc1f49f0b7135aa05bbf3a5463a6e1c238add89
parentc3d8c1414573be8cf7c8fdc1e076935697c7f6af
[PATCH] Provide better printk() support for SMP machines

The attached patch prevents oopses interleaving with characters from
other printks on other CPUs by only breaking the lock if the oops is
happening on the machine holding the lock.

It might be better if the oops generator got the lock and then called an
inner vprintk routine that assumed the caller holds the lock, thus
making oops reports "atomic".

Signed-Off-By: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/printk.c