From 71edf9931d2724d11371efb2ee00eee5ba0c2221 Mon Sep 17 00:00:00 2001 From: walter Date: Wed, 20 Feb 2008 03:47:45 +0000 Subject: [PATCH] b=11706 i=nic i=he.huang add CERROR to make it easier to determine the source of LNET issues --- lnet/klnds/ptllnd/ptllnd_peer.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lnet/klnds/ptllnd/ptllnd_peer.c b/lnet/klnds/ptllnd/ptllnd_peer.c index 51e9a20..59b4de3 100644 --- a/lnet/klnds/ptllnd/ptllnd_peer.c +++ b/lnet/klnds/ptllnd/ptllnd_peer.c @@ -813,6 +813,19 @@ kptllnd_peer_check_bucket (int idx, int stamp) "no free peer buffers" : "please check Portals"); + if (tx->tx_tposted) { + CERROR("Could not send to %s after %ds (sent %lds ago); " + "check Portals for possible issues\n", + libcfs_id2str(peer->peer_id), + *kptllnd_tunables.kptl_timeout, + cfs_duration_sec(jiffies - tx->tx_tposted)); + } else { + CERROR("Could not get credits for %s after %ds; " + "possible Lustre networking issues\n", + libcfs_id2str(peer->peer_id), + *kptllnd_tunables.kptl_timeout); + } + CERROR("%s timed out: cred %d outstanding %d, sent %d, " "sendq %d, activeq %d Tx %p %s (%s%s%s) status %d " "%sposted %lu T/O %ds\n", -- 1.8.3.1