Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp772935imw; Fri, 8 Jul 2022 11:24:41 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t7Pe/JSJcshuYiITJJD8qAs9wV7duurb1Ms2NfhG1ZS4WeCcHH0YPZy7NLqEMsEqUiF5G4 X-Received: by 2002:a63:6f45:0:b0:412:562e:6984 with SMTP id k66-20020a636f45000000b00412562e6984mr4270315pgc.261.1657304681748; Fri, 08 Jul 2022 11:24:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657304681; cv=none; d=google.com; s=arc-20160816; b=w9ucCEgdqzAMCPPo1jJITS8nHO1RZZSrNqpSca3KS/6J5Vv8Pmgd4eFYlHpRVbWNOk 7N4qs5FL2U9zFANLWMep0dO1E2JjTUIbzbaJPNdcjh0kHq5F0SisjcZCDPYw0HuJXzo4 1wD5DKMKa+HNIlNoiFnFnuXhaxEdtdVJPhFBKSkE28aabuf9l+mP9pZJyn43UX7GpDPB HUvoxNZ9/UPOSFJh1Y7E2zuv2oMxjPk/BaR5VRO4vylPPJRZGLBTisuKRAxM9UiPnxTy 5HCgRyeucPgcLwf/Pg4MLl9gXW0mydjk+hrdzNPWd6daZhvKdRASyxHt1oWDqlNKl+kn eBpw== 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=m/kzZoI4uTaJuwS4fPo2HEmLekxnOlF79S2sDj2XS8g=; b=FQF1vaDlAYh+lVhJVHy8v+k6Dhn+6UQFZraod5xR1kH/Sy7aBYfpZkOOuFJQTChcgl aNFgOCkTDmFZw2/rMYk2PW099ZfKRBEyDqz8VGsWYweKY1lLP66W8VKYFZKY4n1NwE2r L7cD4NyAEYypyZu5bSYtYwowyLbWnoBeEpFj3U5auwh5qVz8o9GTg3EUh6qFvmFR7iFm cg5LxNvj8B3xBhzUUkPDtCLe+hszFQDkfPoo3qxDti4CDOuNxrd0JxTN2ahd8nPePCw/ 45lDBmL5UxRf5Fuva/RKIhJjZ22NlqIqzZpKPJGeJjc3ZBLrF2oerz39pUdnP2/6aksT UIew== 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 t186-20020a6381c3000000b0040ccfa0a0dbsi11043287pgd.480.2022.07.08.11.24.19; Fri, 08 Jul 2022 11:24:41 -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 S239359AbiGHSXx (ORCPT + 99 others); Fri, 8 Jul 2022 14:23:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239207AbiGHSXs (ORCPT ); Fri, 8 Jul 2022 14:23:48 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 38B4EE036; Fri, 8 Jul 2022 11:23:48 -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 BC45062474; Fri, 8 Jul 2022 18:23:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CA162C341C0; Fri, 8 Jul 2022 18:23:46 +0000 (UTC) Subject: [PATCH v3 01/32] 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: Fri, 08 Jul 2022 14:23:45 -0400 Message-ID: <165730462579.28142.622648598217418405.stgit@klimt.1015granger.net> In-Reply-To: <165730437087.28142.6731645688073512500.stgit@klimt.1015granger.net> References: <165730437087.28142.6731645688073512500.stgit@klimt.1015granger.net> User-Agent: StGit/1.5.dev3+g9561319 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 d267b9bcf1fc..5af9f8d1feb6 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: