Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp4207372iog; Tue, 28 Jun 2022 11:08:30 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s5+bUQitf+G+DJwV2uUso1PXwwWX4QeTXaTqxYDiraDBFJJUxcVXBYvdQFTGzCavqDCkuP X-Received: by 2002:a63:9c4:0:b0:401:a7b6:ad18 with SMTP id 187-20020a6309c4000000b00401a7b6ad18mr18525381pgj.523.1656439710030; Tue, 28 Jun 2022 11:08:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656439710; cv=none; d=google.com; s=arc-20160816; b=n9EbB2yMlWwq4TSYm2mzbKIDzrBhcyCsrWrZhQhBVl7vDyxN04NVvOMSI5wD3kh7b+ YGeX5/jF3DtxX/BBtcz3XmuAqdER3MG/DnEca/jUQG3rtn7SXKhVrMWett2b4DKMTxBG rBOP2p7Nq5M2+e15Q3KCZZMbWL2pIHIygzzEjGwfguyl3jlaSVtRdo3ab2XOOaRysEwG lN6mxzPUe6vUX1Ayjyyi4NiXHeuNfsqGPriSwOYx2pBOUDm7b2AUYbG1yCUVw7UgpxGs T0ymC/gVC8dUpB1weat78VVzCCmS7c2k/ldkdZGDbpf3/4rF1qB59FnJSZCERsqplR/c q5Qw== 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=mSbvfEab5Zd4Q8nevEzXtOqCIjuRHhyqGYUEeeAkNHE=; b=gtXYRd2Xjd2K7rJdJ0QxZecSeR0VYjrEYF4oXNZ94uLL7ucm7bdJMMdN5Hpmd4leLU SplHAtcikW2GlP9ASP/nU19jjs2mJllpyBOtQXFWyhwWL/b+VQobyZUOC0CgzmYz4o5M /ExRO/vQshcx+kLqfuR4Futd56E27RXUFvLWFeptWUWw5hoH64IlUxOYq35vc03q4eMR qtXmefcfItHWIe9nblYwDA4W28fVNkIIqtGBe74/SMa8rN6N2RTvE2jsg5ETf3cKt5hc HxQ0QqZNZPjUdYOwmU2OxBWFfR7wui0cUwcjPIdDzEsOuxEJ5lA1rF5X0n5dk29+zYs+ K+AA== 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 h19-20020a632113000000b00401afc354e7si18097995pgh.606.2022.06.28.11.08.17; Tue, 28 Jun 2022 11:08:30 -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 S234002AbiF1SH4 (ORCPT + 99 others); Tue, 28 Jun 2022 14:07:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234173AbiF1SHy (ORCPT ); Tue, 28 Jun 2022 14:07:54 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A93C1EEE1; Tue, 28 Jun 2022 11:07: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 ams.source.kernel.org (Postfix) with ESMTPS id 5C735B81F5A; Tue, 28 Jun 2022 18:07:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B343DC3411D; Tue, 28 Jun 2022 18:07:50 +0000 (UTC) Subject: [PATCH v2 19/31] NFSD: Remove lockdep assertion from unhash_and_release_locked() 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:07:49 -0400 Message-ID: <165643966981.84360.18336825644808669920.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 IIUC, holding the hash bucket lock is needed only in nfsd_file_unhash, and there is already a lockdep assertion there. Signed-off-by: Chuck Lever --- fs/nfsd/filecache.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/fs/nfsd/filecache.c b/fs/nfsd/filecache.c index 32ada8cce2e0..278a13d85e8f 100644 --- a/fs/nfsd/filecache.c +++ b/fs/nfsd/filecache.c @@ -306,8 +306,6 @@ nfsd_file_unhash(struct nfsd_file *nf) static bool nfsd_file_unhash_and_release_locked(struct nfsd_file *nf, struct list_head *dispose) { - lockdep_assert_held(&nfsd_file_hashtbl[nf->nf_hashval].nfb_lock); - trace_nfsd_file_unhash_and_release_locked(nf); if (!nfsd_file_unhash(nf)) return false;