Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp4205422iog; Tue, 28 Jun 2022 11:06:18 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tp6zy32FMF3M3p0EdcRX1qMLorlUW6KroCmBF++uR+5w2ZRftFhfe7qKR85sJ4j1fUZMVc X-Received: by 2002:a63:854a:0:b0:40d:1d04:769 with SMTP id u71-20020a63854a000000b0040d1d040769mr18810419pgd.151.1656439577846; Tue, 28 Jun 2022 11:06:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656439577; cv=none; d=google.com; s=arc-20160816; b=gNv5diZHd8JoGOg4jFM39VGV3qTZ80zktz5mSlyvP63hXhv3jEr8ErxZlV0X42+OUg S/jlCdlKKe8Qpt4uSbRwzgHv2SIbFtvSbbQzlsj/hcLph3I+otiTtTf/EcfLYtuKlA86 fV85OfnWUo13CzPVGlOQwJCY/wfSTDIpbjkHQ17iygVDixbLK2yCjRBJ/CyW3dz6VosB jG7Dg/YPQWMMOVAKs6N5B5yvPIxaXDR3U0VXD5IQ2KnHhG89TNip7K/ORgoDl8ipLbjJ SQLgHFCZf51tsxfIOkXKdceYQdVTPx5OpZiE7ciXJWCljdB7PJcdF6AVihARWywsRLjy SGOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:cc:to:from :subject; bh=w77GD+A7Vg0JpAUvIWvP8A1cb4Ogidm+A8XdJi8IJto=; b=hFKdhoPSKny+2JjADnxF2YACqKqTaviWTu30oF9Llh0pq44NATVFhuRVdCBRQRv9ux 9oCmlqx9uzk3akwz7FQyNaxt9FigSRJnTyvBuPG51v2/JH8kQ+AohKd2IlbXi1sk3GyK 2/rdEzrELvgmdMvrZWs3b+xFTBJaH2FCa/+7SIMNVK1gg8v/x27ACn5GZ5EmsDIK6Y0H f8Si9xiZywzgJq74PjyugiBB2zfhufQlYSOiEq9aFLeZft8LQ+CQ4NfnM/Gfe41oiSnn EF1PnkcIAM+CAo6duhab+B2JeGPujLukGFbj6aq0+PMJjmyi6Txfk1n0W/W0mgsalI7N DnWQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 12-20020a630c4c000000b0040c889f1e57si18273251pgm.796.2022.06.28.11.06.04; Tue, 28 Jun 2022 11:06:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232063AbiF1SF4 (ORCPT + 99 others); Tue, 28 Jun 2022 14:05:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230079AbiF1SFz (ORCPT ); Tue, 28 Jun 2022 14:05:55 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 963511CFE5; Tue, 28 Jun 2022 11:05:54 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 3218361A7B; Tue, 28 Jun 2022 18:05:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4678BC3411D; Tue, 28 Jun 2022 18:05:53 +0000 (UTC) Subject: [PATCH v2 01/31] NFSD: Demote a WARN to a pr_warn() From: Chuck Lever To: linux-nfs@vger.kernel.org, netdev@vger.kernel.org Cc: david@fromorbit.com, jlayton@redhat.com, tgraf@suug.ch Date: Tue, 28 Jun 2022 14:05:52 -0400 Message-ID: <165643955226.84360.8094357302840158437.stgit@manet.1015granger.net> In-Reply-To: <165643915086.84360.2809940286726976517.stgit@manet.1015granger.net> References: <165643915086.84360.2809940286726976517.stgit@manet.1015granger.net> User-Agent: StGit/1.5.dev2+g9ce680a5 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org The call trace doesn't add much value, but it sure is noisy. Signed-off-by: Chuck Lever --- fs/nfsd/nfs4proc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/nfsd/nfs4proc.c b/fs/nfsd/nfs4proc.c index 3895eb52d2b1..9366493ae849 100644 --- a/fs/nfsd/nfs4proc.c +++ b/fs/nfsd/nfs4proc.c @@ -630,9 +630,9 @@ nfsd4_open(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, } status = nfsd4_process_open2(rqstp, resfh, open); - WARN(status && open->op_created, - "nfsd4_process_open2 failed to open newly-created file! status=%u\n", - be32_to_cpu(status)); + if (status && open->op_created) + pr_warn("nfsd4_process_open2 failed to open newly-created file: status=%u\n", + be32_to_cpu(status)); if (reclaim && !status) nn->somebody_reclaimed = true; out: