[sheepdog] [PATCH v2] gateway: use more user friendly outout for poll timeout

Liu Yuan namei.unix at gmail.com
Thu May 23 10:48:24 CEST 2013


Signed-off-by: Liu Yuan <namei.unix at gmail.com>
---
 - move printf to better place
 sheep/gateway.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/sheep/gateway.c b/sheep/gateway.c
index 1a37ad8..207ef4a 100644
--- a/sheep/gateway.c
+++ b/sheep/gateway.c
@@ -164,13 +164,15 @@ again:
 
 		panic("%m");
 	} else if (pollret == 0) {
-		sd_eprintf("poll timeout %d", wi->nr_sent);
 		/*
 		 * If IO NIC is down, epoch isn't incremented, so we can't retry
 		 * for ever.
 		 */
 		if (sheep_need_retry(req->rq.epoch) && repeat) {
 			repeat--;
+			sd_eprintf("poll timeout %d, disks of some nodes or"
+				   " network is busy. Going to poll-wait again",
+				   wi->nr_sent);
 			goto again;
 		}
 
-- 
1.7.9.5




More information about the sheepdog mailing list