From c47bd0c8cfebd230cfa948929b7cac6aff1848d7 Mon Sep 17 00:00:00 2001 From: Fan Yong Date: Tue, 25 May 2010 10:08:25 +0800 Subject: [PATCH] b=21636 drop noisy debug messages Drop noisy debug messages i=robert.read i=rahul.deshmukh --- lustre/ldlm/ldlm_lockd.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/lustre/ldlm/ldlm_lockd.c b/lustre/ldlm/ldlm_lockd.c index 3de44bb..d0d8741 100644 --- a/lustre/ldlm/ldlm_lockd.c +++ b/lustre/ldlm/ldlm_lockd.c @@ -1776,12 +1776,10 @@ static inline void ldlm_callback_errmsg(struct ptlrpc_request *req, const char *msg, int rc, struct lustre_handle *handle) { - CWARN("%s: [pid %d] [xid x"LPU64"] [nid %s] [opc %d] [rc %d] " - "[lock "LPX64"].\n", - msg, lustre_msg_get_status(req->rq_reqmsg), - req->rq_xid, libcfs_id2str(req->rq_peer), - lustre_msg_get_opc(req->rq_reqmsg), rc, - handle ? handle->cookie : 0); + DEBUG_REQ((req->rq_no_reply || rc) ? D_WARNING : D_DLMTRACE, req, + "%s: [nid %s] [rc %d] [lock "LPX64"]", + msg, libcfs_id2str(req->rq_peer), rc, + handle ? handle->cookie : 0); if (req->rq_no_reply) CWARN("No reply was sent, maybe cause bug 21636.\n"); else if (rc) -- 1.8.3.1