From 3f8fb726881ff7447817d5dc1ea840b0d9029ddf Mon Sep 17 00:00:00 2001 From: Chris Horn Date: Wed, 7 Feb 2018 15:26:04 -0600 Subject: [PATCH] LU-10633 mdt: Convert MDS restoring RPC message to D_WARNING Using D_WARNING instead of D_RPCTRACE causes the message to be both logged in the Lustre DK logs and on the system console. This patch changes the MDS restore/replay debug message to use D_WARNING. A restored/replayed metadata request indicates some sort of underlying error, and even when handled correctly, should generate a warning. Test-Parameters: trivial Change-Id: Iff98521853323469fc5d6c7d546ca83477b1cb9f HPE-bug-id: LUS-2578 Signed-off-by: Chris Horn Reviewed-on: https://review.whamcloud.com/31214 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: Vladimir Saveliev Reviewed-by: Vitaly Fertman Reviewed-by: Oleg Drokin --- lustre/mdt/mdt_recovery.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lustre/mdt/mdt_recovery.c b/lustre/mdt/mdt_recovery.c index 22e692d..45d404e 100644 --- a/lustre/mdt/mdt_recovery.c +++ b/lustre/mdt/mdt_recovery.c @@ -185,8 +185,7 @@ __u64 mdt_req_from_lrd(struct ptlrpc_request *req, LASSERT(trd != NULL); lrd = &trd->trd_reply; - DEBUG_REQ(D_HA, req, "restoring transno %lld/status %d", - lrd->lrd_transno, lrd->lrd_result); + DEBUG_REQ(D_HA, req, "restoring transno"); req->rq_transno = lrd->lrd_transno; req->rq_status = lrd->lrd_result; @@ -198,8 +197,7 @@ __u64 mdt_req_from_lrd(struct ptlrpc_request *req, lustre_msg_set_transno(req->rq_repmsg, req->rq_transno); lustre_msg_set_status(req->rq_repmsg, req->rq_status); - DEBUG_REQ(D_RPCTRACE, req, "restoring transno %lld/status %d", - req->rq_transno, req->rq_status); + DEBUG_REQ(D_WARNING, req, "restoring transno"); mdt_steal_ack_locks(req); -- 1.8.3.1