]> git.baikalelectronics.ru Git - kernel.git/commit
printk: remove games with previous record flags
authorLinus Torvalds <torvalds@linux-foundation.org>
Tue, 25 Oct 2016 18:27:31 +0000 (11:27 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 15 Dec 2016 05:02:49 +0000 (21:02 -0800)
commit30f6c39040d3c7da8b4c0b60e8b87f29d99b6038
tree7904b431eed74578a43a09c9984090b08350065a
parentd690d398e26c60f1ba3562295837f3de58843256
printk: remove games with previous record flags

The record logging code looks at the previous record flags in various
ways, and they are all wrong.

You can't use the previous record flags to determine anything about the
next record, because they may simply not be related.  In particular, the
reason the previous record was a continuation record may well be exactly
_because_ the new record was printed by a different process, which is
why the previous record was flushed.

So all those games are simply wrong, and make the code hard to
understand (because the code fundamentally cdoes not make sense).

So remove it.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/printk/printk.c