From: walter Date: Wed, 20 Feb 2008 03:47:45 +0000 (+0000) Subject: b=11706 X-Git-Tag: v1_7_0_51~229 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=71edf9931d2724d11371efb2ee00eee5ba0c2221 b=11706 i=nic i=he.huang add CERROR to make it easier to determine the source of LNET issues --- 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",