linux/fs/relayfs
Tom Zanussi fd30fc3256 [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 <zanussi@us.ibm.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-12-20 17:33:22 -08:00
..
Makefile [PATCH] relayfs 2005-09-07 16:57:18 -07:00
buffers.c [PATCH] relayfs: fix bogus param value in call to vmap 2005-10-10 08:39:50 -07:00
buffers.h [PATCH] relayfs 2005-09-07 16:57:18 -07:00
inode.c [PATCH] relayfs 2005-09-07 16:57:18 -07:00
relay.c [PATCH] relayfs: remove warning printk() in relay_switch_subbuf() 2005-12-20 17:33:22 -08:00
relay.h [PATCH] relayfs 2005-09-07 16:57:18 -07:00