From: Dmitry Zogin Date: Fri, 20 Aug 2010 14:44:44 +0000 (+0400) Subject: b=17682 Improve debug capability for production systems X-Git-Tag: 2.0.51.0~47 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=c5690e147572fe92985f55ab0ea942d61aedd9e5 b=17682 Improve debug capability for production systems Improve performance of D_RPCTRACE debugging. i=andreas.dilger i=andrew.perepechko --- diff --git a/lustre/ptlrpc/client.c b/lustre/ptlrpc/client.c index 60d6206..ea4f2e2 100644 --- a/lustre/ptlrpc/client.c +++ b/lustre/ptlrpc/client.c @@ -2285,7 +2285,7 @@ void ptlrpc_free_committed(struct obd_import *imp) if (imp->imp_peer_committed_transno == imp->imp_last_transno_checked && imp->imp_generation == imp->imp_last_generation_checked) { - CDEBUG(D_RPCTRACE, "%s: skip recheck: last_committed "LPU64"\n", + CDEBUG(D_INFO, "%s: skip recheck: last_committed "LPU64"\n", imp->imp_obd->obd_name, imp->imp_peer_committed_transno); EXIT; return; @@ -2324,7 +2324,7 @@ void ptlrpc_free_committed(struct obd_import *imp) break; } - DEBUG_REQ(D_RPCTRACE, req, "commit (last_committed "LPU64")", + DEBUG_REQ(D_INFO, req, "commit (last_committed "LPU64")", imp->imp_peer_committed_transno); free_req: cfs_spin_lock(&req->rq_lock); diff --git a/lustre/ptlrpc/events.c b/lustre/ptlrpc/events.c index 69716b3..2c93be1 100644 --- a/lustre/ptlrpc/events.c +++ b/lustre/ptlrpc/events.c @@ -117,7 +117,7 @@ void reply_in_callback(lnet_event_t *ev) if (ev->type == LNET_EVENT_UNLINK) { LASSERT(ev->unlinked); - DEBUG_REQ(D_RPCTRACE, req, "unlink"); + DEBUG_REQ(D_NET, req, "unlink"); goto out_wake; } @@ -280,7 +280,7 @@ void request_in_callback(lnet_event_t *ev) CFS_INIT_LIST_HEAD(&req->rq_timed_list); cfs_atomic_set(&req->rq_refcount, 1); if (ev->type == LNET_EVENT_PUT) - CDEBUG(D_RPCTRACE, "incoming req@%p x"LPU64" msgsize %u\n", + CDEBUG(D_INFO, "incoming req@%p x"LPU64" msgsize %u\n", req, req->rq_xid, ev->mlength); CDEBUG(D_RPCTRACE, "peer: %s\n", libcfs_id2str(req->rq_peer));