Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp4864318iog; Wed, 22 Jun 2022 07:17:17 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uErfxe7Wu0UnFpgA/JDWjwTDo/UyuIbtFlPDfBey9nWTORbbWrzzqHyKL4WwMhFdFouUHh X-Received: by 2002:a63:3848:0:b0:40c:8ad3:d170 with SMTP id h8-20020a633848000000b0040c8ad3d170mr3103685pgn.175.1655907437550; Wed, 22 Jun 2022 07:17:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655907437; cv=none; d=google.com; s=arc-20160816; b=J/FuweNHMt5Od7/jSr92NJ/ZlGn/gc9o3CyPSOIkTQbHaFCezPnguFPX9JXS65nmO1 qBh7hfMwclEVPglpba0TL5MA54JYDQOfxUjzK4CL1+1bn/agXyoNvZVFqAMphNO5rmax BQMFUMoJic5xMYFLFmPD2Qnn6DuReFTOcUVjoyDCGMFUjYNjIobB4Qj0wi/V+sYcSGaV vlJfkAo3okGeuSgqU8oIEmx4n3dqgz+jwPIa8KqQM4r9i3tR9YTRixn64YMNnLDBHM+N QZ4y2s2o7t+DPNR4z14a5fm9a8xIh6hxGDxrV0gBbia0o8ACpIl4T+BauUh5v6DROOX7 cxlA== 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=gK5SqqnJ+JbgNoOmfg9P+i1ILMySXR2+caAo0kdTVcs=; b=vYqfvdbbO93cH5SLFuYBkaS+oi9onQ2H7/av8eIVUhnk+2p0YegNmuyfTife8D4NjI LsQQDAVmEEMooSArlXtbnaNG2r9z31Xy66wfaPlsqvxMEM0SssLOI7m02Yp5JKQraebZ afOSykqmsVj0B/YbFnP27uf63mKXJhljFWMlE/VF2P7MVzK/nyVqbjt6W+VvMOIXBeH8 n3ur9cu46JCjSBp+LmNVvV4tC1qS5QzndVG5sVJx6P9fFFivIA78wcp1SJm0zFvz1fwm hhDuEmE0L48chfmeKPbbJQZ/JhKRf0hWLAxet28xBNpGUs4gkfjUV3TS0DZLZjWXMweq crgQ== 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 1-20020a630b01000000b003fc88542b01si21758875pgl.208.2022.06.22.07.17.05; Wed, 22 Jun 2022 07:17: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 S1358250AbiFVOQi (ORCPT + 99 others); Wed, 22 Jun 2022 10:16:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1358367AbiFVOPx (ORCPT ); Wed, 22 Jun 2022 10:15:53 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9504E396A9; Wed, 22 Jun 2022 07:15:26 -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 3059261BD9; Wed, 22 Jun 2022 14:15:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 46E85C34114; Wed, 22 Jun 2022 14:15:25 +0000 (UTC) Subject: [PATCH RFC 24/30] NFSD: Remove stale comment from nfsd_file_acquire() From: Chuck Lever To: linux-nfs@vger.kernel.org, netdev@vger.kernel.org Cc: david@fromorbit.com, tgraf@suug.ch, jlayton@redhat.com Date: Wed, 22 Jun 2022 10:15:24 -0400 Message-ID: <165590732434.75778.15270277193176343053.stgit@manet.1015granger.net> In-Reply-To: <165590626293.75778.9843437418112335153.stgit@manet.1015granger.net> References: <165590626293.75778.9843437418112335153.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 I tried the change suggested by the comment, and things broke. IMO that demonstrates the necessity of leaving the fh_verify() call in place. Signed-off-by: Chuck Lever --- fs/nfsd/filecache.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/nfsd/filecache.c b/fs/nfsd/filecache.c index 23c51b95d2a2..ae813e6f645f 100644 --- a/fs/nfsd/filecache.c +++ b/fs/nfsd/filecache.c @@ -992,7 +992,6 @@ nfsd_do_file_acquire(struct svc_rqst *rqstp, struct svc_fh *fhp, unsigned int hashval; bool retry = true; - /* FIXME: skip this if fh_dentry is already set? */ status = fh_verify(rqstp, fhp, S_IFREG, may_flags|NFSD_MAY_OWNER_OVERRIDE); if (status != nfs_ok)