[sheepdog] [PATCH v3] gateway: use more user friendly outout for poll timeout
Liu Yuan
namei.unix at gmail.com
Thu May 23 12:59:12 CEST 2013
Signed-off-by: Liu Yuan <namei.unix at gmail.com>
---
sheep/gateway.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/sheep/gateway.c b/sheep/gateway.c
index 1a37ad8..8495380 100644
--- a/sheep/gateway.c
+++ b/sheep/gateway.c
@@ -164,13 +164,16 @@ 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_printf(SDOG_WARNING,
+ "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