]> git.karo-electronics.de Git - karo-tx-linux.git/commit
printk: remove outdated comment
authorJan Kara <jack@suse.cz>
Thu, 22 May 2014 00:43:34 +0000 (10:43 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 22 May 2014 00:43:34 +0000 (10:43 +1000)
commitb1f1c11c3aa86238082c1b1836efadae2738c909
tree990775f73e8fcc9205a0ab24b4aca4421e707af2
parent8e02e4f3a0cd5b115f92971cfcaf108391ad9fb9
printk: remove outdated comment

Comment about interesting interlocking between lockbuf_lock and
console_sem is outdated.

It was added in 2002 by commit a880f45a48be2956d2c78a839c472287d54435c1
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 <jack@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
kernel/printk/printk.c