Re: take in count O_NONBLOCK flag for rtas log

2008-09-29 Thread Vitaly Mayatskikh
process in wait_event_interruptible() when logging facility was switched off and log is already empty. Acked-by: David Howells <[EMAIL PROTECTED]> Signed-off-by: Vitaly Mayatskikh <[EMAIL PROTECTED]> diff --git a/arch/powerpc/platforms/pseries/rtasd.c b/arch/powerpc/platforms/pseries/rtasd.c

Re: take in count O_NONBLOCK flag for rtas log

2008-09-26 Thread Vitaly Mayatskikh
out; > > + } else > > + nvram_clear_error_log(); > > The 'else' here is unnecessary. It's preceded inside the curlies by a goto. Right... Signed-off-by: Vitaly Mayatskikh <[EMAIL PROTECTED]> diff --git a/arch/powerpc/platforms/pseries/rtasd.c b/arch/powerpc

take in count O_NONBLOCK flag for rtas log

2008-09-25 Thread Vitaly Mayatskikh
rtas_log_read() doesn't check file flags for O_NONBLOCK and blocks non-blocking reader of /proc/ppc64/rtas/error_log if there's no data available. This patch fixes the problem. Signed-off-by: Vitaly Mayatskikh <[EMAIL PROTECTED]> diff --git a/arch/powerpc/platforms/pseries