]> 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)
commit8e96375c7328abc84edc002cce2476c7b0d83173
tree7904b431eed74578a43a09c9984090b08350065a
parenta6c8cbd3a85a348adb0551d8854a8809b9776dfe
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