Thread (1 message) 1 message, 1 author, 2012-02-05
DORMANTno replies

[PATCH 36/91] powerpc/pseries/hvconsole: Fix dropped console output

From: Willy Tarreau <w@1wt.eu>
Date: 2012-02-05 22:27:00
Also in: lkml

2.6.27-longterm review patch.  If anyone has any objections, please let us know.

------------------

commit 51d33021425e1f905beb4208823146f2fb6517da upstream.

Return -EAGAIN when we get H_BUSY back from the hypervisor. This
makes the hvc console driver retry, avoiding dropped printks.

Signed-off-by: Anton Blanchard <redacted>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
---
 arch/powerpc/platforms/pseries/hvconsole.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Index: longterm-2.6.27/arch/powerpc/platforms/pseries/hvconsole.c
===================================================================
--- longterm-2.6.27.orig/arch/powerpc/platforms/pseries/hvconsole.c	2012-02-05 22:34:33.922915442 +0100
+++ longterm-2.6.27/arch/powerpc/platforms/pseries/hvconsole.c	2012-02-05 22:34:39.962914708 +0100
@@ -73,7 +73,7 @@
 	if (ret == H_SUCCESS)
 		return count;
 	if (ret == H_BUSY)
-		return 0;
+		return -EAGAIN;
 	return -EIO;
 }
 

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help