From: johann Date: Tue, 5 May 2009 17:18:59 +0000 (+0000) Subject: Branch HEAD X-Git-Tag: v1_9_180~24 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=2db842c1a9b86c1ea548e7e7432e8418471fb270;p=fs%2Flustre-release.git Branch HEAD b=18674 i=adilger i=bobijam print op code in ptlrpc_expire_one_request(). --- diff --git a/lustre/ptlrpc/client.c b/lustre/ptlrpc/client.c index 55063a7..e043a9e 100644 --- a/lustre/ptlrpc/client.c +++ b/lustre/ptlrpc/client.c @@ -1468,21 +1468,13 @@ int ptlrpc_expire_one_request(struct ptlrpc_request *req, int async_unlink) int rc = 0; ENTRY; - DEBUG_REQ(D_ERROR|D_NETERROR, req, - "%s (sent at "CFS_TIME_T", "CFS_DURATION_T"s ago)", - req->rq_net_err ? "network error" : "timeout", - req->rq_sent, cfs_time_sub(cfs_time_current_sec(), - req->rq_sent)); - - if (imp) { - LCONSOLE_WARN("Request x"LPU64" sent from %s to NID %s " - CFS_DURATION_T"s ago has timed out " - "(limit "CFS_DURATION_T"s).\n", req->rq_xid, - req->rq_import->imp_obd->obd_name, - libcfs_nid2str(imp->imp_connection->c_peer.nid), - cfs_time_sub(cfs_time_current_sec(), req->rq_sent), - cfs_time_sub(req->rq_deadline, req->rq_sent)); - } + DEBUG_REQ(D_WARNING, req, "Request x"LPU64" sent from %s to NID %s " + CFS_DURATION_T"s ago has %s (limit "CFS_DURATION_T"s).\n", + req->rq_xid, imp ? imp->imp_obd->obd_name : "", + imp ? libcfs_nid2str(imp->imp_connection->c_peer.nid) : "", + cfs_time_sub(cfs_time_current_sec(), req->rq_sent), + req->rq_net_err ? "failed due to network error" : "timed out", + cfs_time_sub(req->rq_deadline, req->rq_sent)); if (imp != NULL && obd_debug_peer_on_timeout) LNetCtl(IOC_LIBCFS_DEBUG_PEER, &imp->imp_connection->c_peer);