From: Tom Zanussi Date: Tue, 20 Dec 2005 19:10:22 +0000 (-0600) Subject: [PATCH] relayfs: remove warning printk() in relay_switch_subbuf() X-Git-Tag: v2.6.15-rc7~16^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd30fc3256824f03c2ff9317269d66f72f7042ca;p=pandora-kernel.git [PATCH] relayfs: remove warning printk() in relay_switch_subbuf() There's currently a diagnostic printk in relay_switch_subbuf() meant as a warning if you accidentally try to log an event larger than the sub-buffer size. The problem is if this happens while logging from somewhere it's not safe to be doing printks, such as in the scheduler, you can end up with a deadlock. This patch removes the warning from relay_switch_subbuf() and instead prints some diagnostic info when the channel is closed. Thanks to Mathieu Desnoyers for pointing out the problem and suggesting a fix. Signed-off-by: Tom Zanussi Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed