From 53cb69fa4f539d9e3bbca18042a098b0f3f6482e Mon Sep 17 00:00:00 2001 From: Prakash Surya Date: Tue, 20 Nov 2012 13:04:03 -0800 Subject: [PATCH] LU-2321 debug: Quiet uninitialized target connects When a target is not fully initialized and receives a connection attempt, it will refuse the connection and print a message to the console stating this fact. This is "normal operation", so rather than using LCONSOLE_WARN to convey this information, this patch modifies it to use CDEBUG. Signed-off-by: Prakash Surya Change-Id: Ia5d098fcfe2ad9ae2a1406166087db8181496a7d Reviewed-on: http://review.whamcloud.com/4640 Tested-by: Hudson Reviewed-by: Andreas Dilger Tested-by: Maloo Reviewed-by: Oleg Drokin --- lustre/ldlm/ldlm_lib.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lustre/ldlm/ldlm_lib.c b/lustre/ldlm/ldlm_lib.c index b4f7a6c..40df0e4 100644 --- a/lustre/ldlm/ldlm_lib.c +++ b/lustre/ldlm/ldlm_lib.c @@ -813,11 +813,11 @@ int target_handle_connect(struct ptlrpc_request *req) if (target->obd_no_conn) { spin_unlock(&target->obd_dev_lock); - LCONSOLE_WARN("%s: Temporarily refusing client connection " - "from %s\n", target->obd_name, - libcfs_nid2str(req->rq_peer.nid)); - GOTO(out, rc = -EAGAIN); - } + CDEBUG(D_INFO, "%s: Temporarily refusing client connection " + "from %s\n", target->obd_name, + libcfs_nid2str(req->rq_peer.nid)); + GOTO(out, rc = -EAGAIN); + } /* Make sure the target isn't cleaned up while we're here. Yes, * there's still a race between the above check and our incref here. -- 1.8.3.1