Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp4863502iog; Wed, 22 Jun 2022 07:16:29 -0700 (PDT) X-Google-Smtp-Source: AGRyM1ukp72tOOWur/LO7nrHjCFYRtdahVwAqMTcAW0xlwcTf3q4+SA0SCotMpTApO69PiXevfhD X-Received: by 2002:a17:90a:6b0d:b0:1ec:93e5:c61b with SMTP id v13-20020a17090a6b0d00b001ec93e5c61bmr3984102pjj.189.1655907389627; Wed, 22 Jun 2022 07:16:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655907389; cv=none; d=google.com; s=arc-20160816; b=zJRL2WD6HItyVPqJzcBkbYmTWjINap5NPOGRpgadyRmwRosG/pQ+QK6erwnn5RYEGy 8eQxWscI8358r4vPO5ZPfXFAWBb4RrgVek3zCfSpo86v3MI8hM0DlGx/AAh+xxIw0EKa DbmcIUEacjwGorh+CGWCeKH3KIdCqDjGr1tyD2I3W0+MAXcfBKrS7bpTmhuH3aumct7R wUw56u3Eg2OCNbNdaDRKTqwgJdkekMGn4jd/AGXvAgT6USZMwUKtiT0T4+Culzko/Lf2 DE5KxUVN+hFZFMNM44SKYt4Eak5eZqawz2LkE1eatmpjW2lb1iKo5/9xLn5tRjTG5tts UDXg== 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=EtknfWpzFmWxPAUsZtgFC3HnjdGSsjHkIsgwJY1+eVg=; b=gvPGhXGvdob0N7LfdmWalPuU3hCSVpdrn6g2sm36X94DI2mTQBh0IVtwDqrbAxoBbb bTrbQoa17s8pTWUNG5x+v+U0A3cFmhLSSINe69ISJPLJAOHswBLfyQ5Nmd7pMg8yV1bL h4Gg715hwqIP1oIklR1Fe0gIbg2PD6CPI5uQXAJqvKwFsg49v+TyopG0Z/7/iZDHNcpg R8ucFN61T8D69StAh9FvNbsJ7oPJpoHwYX7jD6uSC4rWsyWbekdboGKTDnpTW1smsBqN 1lvgVQRhC0+NF4mCcK/2gUoec6QJ6HaEfM6jzQ/20EESo9hHKiCVRAPZYN+UFPaDpTVp kQ9w== 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 66-20020a620645000000b00522d070c48bsi22166495pfg.317.2022.06.22.07.16.14; Wed, 22 Jun 2022 07:16:29 -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 S1358169AbiFVOPv (ORCPT + 99 others); Wed, 22 Jun 2022 10:15:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1358355AbiFVOPP (ORCPT ); Wed, 22 Jun 2022 10:15:15 -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 D804F39B9C; Wed, 22 Jun 2022 07:14:53 -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 5670161B71; Wed, 22 Jun 2022 14:14:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 60937C34114; Wed, 22 Jun 2022 14:14:52 +0000 (UTC) Subject: [PATCH RFC 19/30] 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, tgraf@suug.ch, jlayton@redhat.com Date: Wed, 22 Jun 2022 10:14:51 -0400 Message-ID: <165590729129.75778.11255677507294323945.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 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 d620f18924a1..304faa28afd7 100644 --- a/fs/nfsd/filecache.c +++ b/fs/nfsd/filecache.c @@ -307,8 +307,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;