Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp186537rwb; Thu, 12 Jan 2023 18:08:21 -0800 (PST) X-Google-Smtp-Source: AMrXdXvM2oUgST0AbXns0/QN0BIbtdD3vgZIgbwOFMEmB9LNsXD45zyD3UMKgVftgfccrkigmCDH X-Received: by 2002:a17:90a:a011:b0:226:f1b9:bb37 with SMTP id q17-20020a17090aa01100b00226f1b9bb37mr20812283pjp.40.1673575701187; Thu, 12 Jan 2023 18:08:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673575701; cv=none; d=google.com; s=arc-20160816; b=QSajlNwYx5hSL0vUv0t6hDbXAZWdhTUjEUKdVknbKuWLEfRR8mJ5oMcRwc9wp+xAAm miCRVMAykdKNQcH3NzLPNNjydDSWB+DlWj6REDNCtnetN46gEHSXk3OmIeKj3bOLhcub /4ctFRYnqyDplvDwtCRtAb8qZS5Ek94uK3zuRpe4RPGSlOP67s48Bo8iD+/OqXLViYET pSybhz0NYFeJ6qqtVSFgZzAnjF7iwqkOkwyfRKU916gVh2TSG2RmBvG38zjVPCG+H1Ut WFx2ep5GBn9wSG/QqKD1I2EynaB1e/hbNM3MJpSK4cHWZCurqm4/6MerAK9t7B9eYBfu Eq1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=xXXkMiBdpBqwUKwUP7IEn45j771iSvlb88BXCaO5Wp8=; b=DxU34YVHtWEqbHj3m7p92Ddf18SRszAIYPgeZ41CBvas6thf/gRNX125eLjBoViBiF HdzovgG8bUPMyoetuelLM45s337UctMl0FiICalVUOgx0xXARI6p4SRTsQhNaCunngvq FgyL9sWDy5fx6leMzbuKGsIM1ZwcMxuQHWwF9lCmAhg0hO45OS6ByRSyBETjg6AKnvlE J4fH7g4nDxlF2fXd1NyTvaVsNXP90PD9Z2aJShYTw7nzyVVTGtXk28aOL1xPtMrDU3Bf 41dpvYWrhn8G4D5i2z6wyVUsZIediE78zK6fHDQIDkp8lUYxMCGZ+wRGO2bAOIUSnkNi Mh+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="B9NGXL/x"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r16-20020a632b10000000b004ad157c4692si18095689pgr.395.2023.01.12.18.08.14; Thu, 12 Jan 2023 18:08:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="B9NGXL/x"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231911AbjAMBDz (ORCPT + 50 others); Thu, 12 Jan 2023 20:03:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237088AbjAMBDx (ORCPT ); Thu, 12 Jan 2023 20:03:53 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 286875D437; Thu, 12 Jan 2023 17:03:51 -0800 (PST) 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 6006C621E9; Fri, 13 Jan 2023 01:03:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E4CD0C433D2; Fri, 13 Jan 2023 01:03:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673571830; bh=GvscdVhdioCnpNZOfyufMWuET+aoLnxbqmqCVUJ0Vzg=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=B9NGXL/xiB1Ow2yixMxCRFjhqpbk8gXeKGnfPH/HimISnQhMUPs1Sql5+9wd+5R2f 7LS/MjcJErPodLBUz0yH+rOGs+FdlynnHVkd3ast5Upmjrq+Q8Nfqo1O6WWCGBEbR+ hPPnRuS7aRhYE1/rrWzsvDe/pwqfnyt+Fg6eiAiUg87fjYZ36UX96cjsQv31/28HRP KWOdMXApEQyeIjQtZObNoTxeOV2tt3HQP7WJVZtX85/irQL67/PAxpm94yKIrp5bMB d9OwprVtDxUF+aXED26AoYPgsXL68DxUstNpH11scaSwRsZGzs3gApht6S2lJnbY7J ZgDyL53R19PTg== Message-ID: <2060f8d47dd0fd1999733b87b1919f6642b6e9e1.camel@kernel.org> Subject: Re: [PATCH rcu v2 09/20] fs: Remove CONFIG_SRCU From: Jeff Layton To: "Paul E. McKenney" , rcu@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel-team@meta.com, rostedt@goodmis.org, Chuck Lever , Alexander Viro , linux-fsdevel@vger.kernel.org, John Ogness Date: Thu, 12 Jan 2023 20:03:48 -0500 In-Reply-To: <20230113001132.3375334-9-paulmck@kernel.org> References: <20230113001103.GA3374173@paulmck-ThinkPad-P17-Gen-1> <20230113001132.3375334-9-paulmck@kernel.org> Content-Type: text/plain; charset="ISO-8859-15" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.3 (3.46.3-1.fc37) MIME-Version: 1.0 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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-kernel@vger.kernel.org On Thu, 2023-01-12 at 16:11 -0800, Paul E. McKenney wrote: > Now that the SRCU Kconfig option is unconditionally selected, there is > no longer any point in conditional compilation based on CONFIG_SRCU. > Therefore, remove the #ifdef and throw away the #else clause. >=20 > Signed-off-by: Paul E. McKenney > Cc: Jeff Layton > Cc: Chuck Lever > Cc: Alexander Viro > Cc: > Reviewed-by: John Ogness > --- > fs/locks.c | 25 ------------------------- > 1 file changed, 25 deletions(-) >=20 > diff --git a/fs/locks.c b/fs/locks.c > index 8f01bee177159..1909a9de242c8 100644 > --- a/fs/locks.c > +++ b/fs/locks.c > @@ -1889,7 +1889,6 @@ int generic_setlease(struct file *filp, long arg, s= truct file_lock **flp, > } > EXPORT_SYMBOL(generic_setlease); > =20 > -#if IS_ENABLED(CONFIG_SRCU) > /* > * Kernel subsystems can register to be notified on any attempt to set > * a new lease with the lease_notifier_chain. This is used by (e.g.) nfs= d > @@ -1923,30 +1922,6 @@ void lease_unregister_notifier(struct notifier_blo= ck *nb) > } > EXPORT_SYMBOL_GPL(lease_unregister_notifier); > =20 > -#else /* !IS_ENABLED(CONFIG_SRCU) */ > -static inline void > -lease_notifier_chain_init(void) > -{ > -} > - > -static inline void > -setlease_notifier(long arg, struct file_lock *lease) > -{ > -} > - > -int lease_register_notifier(struct notifier_block *nb) > -{ > - return 0; > -} > -EXPORT_SYMBOL_GPL(lease_register_notifier); > - > -void lease_unregister_notifier(struct notifier_block *nb) > -{ > -} > -EXPORT_SYMBOL_GPL(lease_unregister_notifier); > - > -#endif /* IS_ENABLED(CONFIG_SRCU) */ > - > /** > * vfs_setlease - sets a lease on an open file > * @filp: file pointer Reviewed-by: Jeff Layton