From patchwork Thu Jul 12 08:45:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chengguang Xu X-Patchwork-Id: 10521341 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0E32E602C8 for ; Thu, 12 Jul 2018 08:46:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E404B287F9 for ; Thu, 12 Jul 2018 08:46:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D855429429; Thu, 12 Jul 2018 08:46:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,FREEMAIL_FROM, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8A2A5287F9 for ; Thu, 12 Jul 2018 08:46:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726752AbeGLIyh (ORCPT ); Thu, 12 Jul 2018 04:54:37 -0400 Received: from mout.gmx.net ([212.227.17.20]:46923 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726393AbeGLIyh (ORCPT ); Thu, 12 Jul 2018 04:54:37 -0400 Received: from x201.localdomain ([117.136.31.239]) by mail.gmx.com (mrgmx102 [212.227.17.174]) with ESMTPSA (Nemesis) id 0Luajs-1g4As806z2-00zqOs; Thu, 12 Jul 2018 10:45:56 +0200 From: Chengguang Xu To: ceph-devel@vger.kernel.org Cc: zyan@redhat.com, idryomov@gmail.com, Chengguang Xu Subject: [Resend PATCH 2/2] ceph: delete redundant debug message Date: Thu, 12 Jul 2018 16:45:08 +0800 Message-Id: <20180712084508.24131-2-cgxu519@gmx.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180712084508.24131-1-cgxu519@gmx.com> References: <20180712084508.24131-1-cgxu519@gmx.com> X-Provags-ID: V03:K1:GBkKDUcwqQtp3hF5M4WNe+ebm/yhpkU1U2k/66cp/LTJlIuWGmC iy0ODNCawFf5aQDz/vnuby8Q91IIOuD+j94AwBNH4dEtA2G8VvgwE4JnmIylKf2BKi+07M0 NK0omRJ+fKM6VPSb7zJUhJA+gLtcLmpgVQtYESlQ1cdcYh/esTQli7umEEvkm7LR0AFSqG7 T51ux2ejplD3D6lKWglBQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:w85QaVw+B0w=:nE3i1Kyi3Uz72KQm+GJqbl 3SbAUyxnIWDO5bfWL4HXtiVH+p0BWt5FjVFI2vW1za5feNkMFaP1qBXPpOekBXjshgpPy6pgK Js/S6y5y/HhumuLuEZ39h/uxWYmOBK4Nx9UrY+BBbcqZy6N6JtA9CCyFDEGnUxNe/Rnsun75s FF/lRraRddAa6Z6az70JKFHWDv89XtdaFbAzEqEmGR2tgG8fgEyTK5Oev8c5HaXAeiqUk9Uum 89c+8irs+wvL7Rce3alsVvMp+EqxcjpQbZ9X/A7BO9mw4ReRfHy3+RoQMReC/m/w1FwcrsdUC 3CCprGdGx4jRrINyNUYS0nm8T8GqvjtGvBXzpa3nVA2P1oX2oZq2EpEEZSTcC9bGa+XRMjvMn 3+x4CK36Lt3eg5qTnT9YU6cTlcpkVm5bh2e+ktafoF2pbqh2Y7qcmeWZmFz9t6Qd/A/6CmnRW GgAc2c0ivV1n7zieSqZx8BVuMTlHCn71GgFDpLtC148EXu2+oEoLE7Ca4h/TjxyR3icd7JmaY 9l01bwR5o/blMGBqZMrIhL3lsqE55SXcCa3DGz9dFL5rpmyotn+jVjCP84WgOs8IgWe/ZzR9Z A5sdfnMzyJuhF5xcZWXvQYFHZCI7DRRfjUMLNoSCA/MC0wthD6sk1M570f3HHRtDW49154wk5 Vr+x63r4C5HPQL6iKYdnG0PXxylmMlY65zz23AwcNKu5ZetTl6o4HreocrAEdhRLaDDAwg8yj nblimrFJiFNLvEYTw/TOOrezHJNWTJJkeMpyKLs5Tn2JeXf7yYWuMe/f6fQ= Sender: ceph-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: ceph-devel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP We print session's refcount in debug message inside ceph_put_mds_session() and get_session(), so don't have to print it in con_get()/__ceph_lookup_mds_session()/con_put(). Signed-off-by: Chengguang Xu --- Sorry, I just wrote wrong email address in previous sending, so resend it. If you have received previous email please ignore it, thanks. fs/ceph/mds_client.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c index 2a8d4cc69eb6..fc2d1c8ecfd2 100644 --- a/fs/ceph/mds_client.c +++ b/fs/ceph/mds_client.c @@ -433,8 +433,6 @@ struct ceph_mds_session *__ceph_lookup_mds_session(struct ceph_mds_client *mdsc, if (mds >= mdsc->max_sessions || !mdsc->sessions[mds]) return NULL; session = mdsc->sessions[mds]; - dout("lookup_mds_session %p %d\n", session, - refcount_read(&session->s_ref)); get_session(session); return session; } @@ -4080,11 +4078,8 @@ static struct ceph_connection *con_get(struct ceph_connection *con) { struct ceph_mds_session *s = con->private; - if (get_session(s)) { - dout("mdsc con_get %p ok (%d)\n", s, refcount_read(&s->s_ref)); + if (get_session(s)) return con; - } - dout("mdsc con_get %p FAIL\n", s); return NULL; } @@ -4092,7 +4087,6 @@ static void con_put(struct ceph_connection *con) { struct ceph_mds_session *s = con->private; - dout("mdsc con_put %p (%d)\n", s, refcount_read(&s->s_ref) - 1); ceph_put_mds_session(s); }