diff options
| author | Jan Kara <[email protected]> | 2014-06-04 23:11:34 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2014-06-04 23:54:16 +0000 |
| commit | ca1d432ad8a527fabc5c7ceed8526e3a28de121c (patch) | |
| tree | aeba2801756018b1b16267c55927746b2e19e283 /lib/string.c | |
| parent | printk: return really stored message length (diff) | |
| download | kernel-ca1d432ad8a527fabc5c7ceed8526e3a28de121c.tar.gz kernel-ca1d432ad8a527fabc5c7ceed8526e3a28de121c.zip | |
printk: remove outdated comment
Comment about interesting interlocking between lockbuf_lock and
console_sem is outdated.
It was added in 2002 by commit a880f45a48be during conversion of
console_lock to console_sem + lockbuf_lock.
At that time release_console_sem() (today's equivalent is
console_unlock()) was indeed using lockbuf_lock to avoid races between
trylock on console_sem in printk() and unlock of console_sem. However
these days the interlocking is gone and the races are avoided by
rechecking logbuf state after releasing console_sem.
Signed-off-by: Jan Kara <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/string.c')
0 files changed, 0 insertions, 0 deletions
