Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp746084ybj; Thu, 7 May 2020 06:46:30 -0700 (PDT) X-Google-Smtp-Source: APiQypKb761Py4Q/viJIj9zPkNmdjBMoNsOg9xzZFFldLWYOPwWpr/mjXcp1DkiOFsKGTa/CaGtE X-Received: by 2002:a05:6402:1d02:: with SMTP id dg2mr12157212edb.5.1588859189951; Thu, 07 May 2020 06:46:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588859189; cv=none; d=google.com; s=arc-20160816; b=Tb+6IMjG3iscntUtc1xgOzGc0mKV1AwAejCKjPisR+M0qKeGqC0ZpHMM647U+lDNAY /SBockoX7UDh8mIFk/qmVn72Fw7HykXPauD7kVzeV+C9S4G9RCP3LBsmBS/jQqbRv9vX XPpm/2JavjCBkCBRR0ug3JGQtd3mnNGQ/ze6enLP/V1q/zuJaECnqxIL0o4boJmZjQkz 8kzOegTNfnt39ALwQbvZJQnbtlPMiJQwqgYojj6mnYCQXXM8bIBsIvh1OOme6TgR1ZU1 atwl2PLTjafyAbzomnWZTFodAOamB3R1kXhP0xVDPglLKrj+wb463E3uk9UUv4z5YqpU t+6Q== 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:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=FernM6H5TEdRlxeqtGlyjX3M2ufT1j0Ols/WwhLkmgs=; b=ObuCbQdTizGcLCO1CuZttWR7vNlN2GrW1L9Pni2d7C5VwOTEKd6e1qygBVA9svrP0p WusanWvHZbtU3xs0l7d8uWBUJHLdNLvIl8vZAVhJZI2wspp+EyCLNbkdFkZuKXqdjPhT A1J0BCCK9ioOumsaBNfKesUI+qQeNBEGRvdT68nYkOGXWqYAa4ijuyUZ/wMK4vvlWnwJ 14U0Y2refa5GUGyZlTxfQUOiKV0ZcHdVyU/D0S6ASBpVyxXIUFq+2jbNc2JG/2ojZmOG /X4fSiTNMpsN0lGj6nTGLRAsmmBbnAtYiPDNaT2FRnPEQUGTbKkejSdDp3U5wD8lOoRx 2h8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=PewNcwmR; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n1si3008847edo.354.2020.05.07.06.46.00; Thu, 07 May 2020 06:46:29 -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; dkim=pass header.i=@kernel.org header.s=default header.b=PewNcwmR; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726809AbgEGNoR (ORCPT + 99 others); Thu, 7 May 2020 09:44:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:40120 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725939AbgEGNoP (ORCPT ); Thu, 7 May 2020 09:44:15 -0400 Received: from tleilax.poochiereds.net (68-20-15-154.lightspeed.rlghnc.sbcglobal.net [68.20.15.154]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 31C4720708; Thu, 7 May 2020 13:44:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588859054; bh=A65o93oA659l57qzQi9fqA4AboQSPcBGUlmqBXf4idw=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=PewNcwmRKjnGMBjIGfgAnKwirjB3T4i2ZPq+UeTHSwJQwbXh5D3eAat83UthrFHFA GgU+4LBi8mKBn9RN2Nr2bEr4e6Iui63bMoKOore/wu7ZPocv0QNnLLvHol2uE9KFz0 aZ0HBjg7k/kb77cVdL71h1LNh5Q0ihWOcrdaVGIE= Message-ID: Subject: Re: [PATCH] ceph: demote quotarealm lookup warning to a debug message From: Jeff Layton To: Ilya Dryomov Cc: ceph-devel@vger.kernel.org, linux-kernel@vger.kernel.org, Gregory Farnum , Luis Henriques Date: Thu, 07 May 2020 09:44:13 -0400 In-Reply-To: <20200505125902.GA10381@suse.com> References: <20200505125902.GA10381@suse.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.2 (3.36.2-1.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2020-05-05 at 13:59 +0100, Luis Henriques wrote: > 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; > Ilya, We've had a number of reports where people get a ton of kernel log spam when they hit this problem. I think we probably ought to mark this patch for stable and go ahead and send it to Linus for v5.7 -- any objection? -- Jeff Layton