Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp675763ybj; Tue, 5 May 2020 06:03:41 -0700 (PDT) X-Google-Smtp-Source: APiQypJHJup6gXlFmvxP/Ioac8+dpj6uz2SoBCe60bNyxaDAmc6wmEoLjLdY1yiyRuTIdc6xE15i X-Received: by 2002:adf:ea44:: with SMTP id j4mr4002721wrn.38.1588683820809; Tue, 05 May 2020 06:03:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588683820; cv=none; d=google.com; s=arc-20160816; b=Fm+loFKPvuBN1NoUorZ9Bg71/nhkjxXZWfXJbEmdtDhST29RHu3FIqXWe3AmOFUYEG wqOxv4enqekJuOPFMvnbjNl2UDTG/OTitFTGXVq5Y9Vc1sB7qEPezQzSh6RRjwxI5ObH xWtf2yjvDBheWf/kDfOl84nnl5kdto8k+rrBOupDnmI/XuvZ9tT1Sah0vV8/41rgHT7+ gzH2esdM4/gbYRut2qqEGePViqwtaTugoXPk14nuxFmvYXxerHEdAuJHPRE7Lzbvbt5k E38EDjSmiPVUDPlUT30i/xA9AVaNZvof7ZeSJ3VIy4+k819KwY1WxW3fF6zs/BwAWJwE E24g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-disposition:mime-version:message-id:subject:cc:to:from:date; bh=A6O+43oIud3gMh7XdEGY+rMUwRJjU4YRdhK+Ri7RFu8=; b=e/uv4Z3jh5LaXgViYVm2Xlkk0oirIRqHmsV2Ji4X8FkfSEcjIKHj+a4OVZYRggj4Ml dOepW0zXOSLPauPAw7LKjGq/aS2j8/AWcMLdUbKDkNNs6M+70p6X1sofyZ8/Hs0bqocg VVP41BjIpo/Ms2JnN+g0xEpNkKbqWL0eWhjeRmrA9HSZ1Cn7QAyVoF3WeF1ZkeIGvMkj w9g4qI2PPdXgswZJbQRwXK74Fdh2FcCwU/pIQ/6iFJzqTrvybuHgtJ5GdqndeTPHhZOE JOTtV3i5FICrEu8BtjRPhxcwUYqxsAKtty/TLOTxaNElVTyQVKgyrjIIPVS1aa+k+DhB ZTJQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p1si986772ejd.333.2020.05.05.06.03.06; Tue, 05 May 2020 06:03:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728995AbgEEM7G (ORCPT + 99 others); Tue, 5 May 2020 08:59:06 -0400 Received: from mx2.suse.de ([195.135.220.15]:54034 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728268AbgEEM7F (ORCPT ); Tue, 5 May 2020 08:59:05 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 554D9ACCC; Tue, 5 May 2020 12:59:06 +0000 (UTC) Received: from localhost (webern.olymp [local]) by webern.olymp (OpenSMTPD) with ESMTPA id 1ffc28eb; Tue, 5 May 2020 13:59:02 +0100 (WEST) Date: Tue, 5 May 2020 13:59:02 +0100 From: Luis Henriques To: Jeff Layton , Ilya Dryomov , Gregory Farnum Cc: ceph-devel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] ceph: demote quotarealm lookup warning to a debug message Message-ID: <20200505125902.GA10381@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org A misconfigured cephx can easily result in having the kernel client flooding the logs with: ceph: Can't lookup inode 1 (err: -13) Change his message to debug level. Link: https://tracker.ceph.com/issues/44546 Signed-off-by: Luis Henriques --- Hi! This patch should fix some harmless warnings when using cephx to restrict users access to certain filesystem paths. I've added a comment to the tracker where removing this warning could result (unlikely, IMHO!) in an admin to miss not-so-harmless bogus configurations. Cheers, -- Lu?s fs/ceph/quota.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/ceph/quota.c b/fs/ceph/quota.c index de56dee60540..19507e2fdb57 100644 --- a/fs/ceph/quota.c +++ b/fs/ceph/quota.c @@ -159,8 +159,8 @@ static struct inode *lookup_quotarealm_inode(struct ceph_mds_client *mdsc, } if (IS_ERR(in)) { - pr_warn("Can't lookup inode %llx (err: %ld)\n", - realm->ino, PTR_ERR(in)); + dout("Can't lookup inode %llx (err: %ld)\n", + realm->ino, PTR_ERR(in)); qri->timeout = jiffies + msecs_to_jiffies(60 * 1000); /* XXX */ } else { qri->timeout = 0;