]> git.baikalelectronics.ru Git - kernel.git/commit
printk() - do not merge continuation lines of different threads
authorKay Sievers <kay@vrfy.org>
Thu, 10 May 2012 02:32:53 +0000 (04:32 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 May 2012 03:29:59 +0000 (20:29 -0700)
commit932cbe6b431409a6d4836d0778dfed06f4ca622b
tree737f0efbb6971c7055d7b07dacc79a2922bd19c7
parent87af9b74b514420205cb3f1a1dd3e02a35d5863a
printk() - do not merge continuation lines of different threads

This prevents the merging of printk() continuation lines of different
threads, in the case they race against each other.

It should properly isolate "atomic" single-line printk() users from
continuation users, to make sure the single-line users will never be
merged with the racy continuation ones.

Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Kay Sievers <kay@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/printk.c