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

Liu Yuan namei.unix at gmail.com
Thu May 23 08:52:33 CEST 2013


Signed-off-by: Liu Yuan <namei.unix at gmail.com>
---
 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