From patchwork Thu Jan 5 00:38:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Paul E. McKenney" X-Patchwork-Id: 13089274 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B6EF1C678D8 for ; Thu, 5 Jan 2023 00:41:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240071AbjAEAlL (ORCPT ); Wed, 4 Jan 2023 19:41:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240707AbjAEAiu (ORCPT ); Wed, 4 Jan 2023 19:38:50 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 993B2C4D; Wed, 4 Jan 2023 16:38:20 -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 ams.source.kernel.org (Postfix) with ESMTPS id 7985FB8198C; Thu, 5 Jan 2023 00:38:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BF63AC4332C; Thu, 5 Jan 2023 00:38:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672879095; bh=uoGgcjGPKW6WOc/kv1zTqKaKBuXUOztQUJ0azz/FjbI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mE82tqRjiTJ3LsNUM1pJG7Fd5iOdFe20DdzmxMYspIJIpqnztEbWgIsMeB2Uu+XgP imAOCjUHCBenTW19vhpGOW9IVC1l80oqLd4xAYyJBAbkcH55zeAFF75YFwkIDZLBdv 9CRBNn4LFSoIETi5tP6d0XEN3QqO0X74dxFA1mK1pLR4ahGAKJRc1+WkWdw1sw5pDw C9r5ec0M+UaYk9tUNZO8dl5xCRQ2QkdhYAPb60lVegWFn/IWcEq1JkPY1/RuKtrJvt Y0pN1D0qzmpvWjMY/IOCLhs7DnZn4w6acwMNXsFyeLCuHY2nARw7rF+Gef0u1mmgzh 9u9+Hmh4jEI7w== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id DA7AB5C1C9F; Wed, 4 Jan 2023 16:38:14 -0800 (PST) From: "Paul E. McKenney" To: rcu@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel-team@meta.com, rostedt@goodmis.org, "Paul E. McKenney" , Jan Kara , Amir Goldstein , linux-fsdevel@vger.kernel.org Subject: [PATCH rcu 20/27] fs/notify: Remove "select SRCU" Date: Wed, 4 Jan 2023 16:38:06 -0800 Message-Id: <20230105003813.1770367-20-paulmck@kernel.org> X-Mailer: git-send-email 2.31.1.189.g2e36527f23 In-Reply-To: <20230105003759.GA1769545@paulmck-ThinkPad-P17-Gen-1> References: <20230105003759.GA1769545@paulmck-ThinkPad-P17-Gen-1> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org Now that the SRCU Kconfig option is unconditionally selected, there is no longer any point in selecting it. Therefore, remove the "select SRCU" Kconfig statements. Signed-off-by: Paul E. McKenney Cc: Jan Kara Cc: Amir Goldstein Cc: Acked-by: Jan Kara --- fs/notify/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/notify/Kconfig b/fs/notify/Kconfig index c020d26ba223e..c6c72c90fd253 100644 --- a/fs/notify/Kconfig +++ b/fs/notify/Kconfig @@ -1,7 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-only config FSNOTIFY def_bool n - select SRCU source "fs/notify/dnotify/Kconfig" source "fs/notify/inotify/Kconfig" From patchwork Thu Jan 5 00:38:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Paul E. McKenney" X-Patchwork-Id: 13089275 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7437BC54E76 for ; Thu, 5 Jan 2023 00:41:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235812AbjAEAlJ (ORCPT ); Wed, 4 Jan 2023 19:41:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240727AbjAEAix (ORCPT ); Wed, 4 Jan 2023 19:38:53 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17D2BDE4; Wed, 4 Jan 2023 16:38:23 -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 F1CD7618BF; Thu, 5 Jan 2023 00:38:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D6A89C43332; Thu, 5 Jan 2023 00:38:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672879095; bh=XMX0rNISyJ3jdJLoqDXy9UsPPAVZ6pFivTvukmA1Yy0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=blU9blNCFeH4+MvoJnMJK2XWTi40fgcvMY1ZZGJCka/5+Rh+1E+L/Ian43TBJEuGq DMi5UvOsUHaWIkfgb7k/mOe6b7avNFVzalMFKsDtGOjIsBosFw8GNIuaH7TdSpyik+ dfvW/iY99Z+zLSodcCngB77xOBlB7w+rGdGzZVkNf6dXCPw/9OKZDWj5+VzOmhtEV7 NQMa+wXpsOA5rDjRs1WgYQePd+gDLEI1u9ZSqNZAD85H1NwMZ3vNbMirGYbgIkuYbK Zc1R6IGO7j6bMXnch4c97JlJrs/jE8ss9C8TKB3tchu771TDVs0IwqSuLkvx/wuH69 VU+S+ehWHamTQ== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id E41B15C1CBA; Wed, 4 Jan 2023 16:38:14 -0800 (PST) From: "Paul E. McKenney" To: rcu@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel-team@meta.com, rostedt@goodmis.org, "Paul E. McKenney" , Jeff Layton , Chuck Lever , Alexander Viro , linux-fsdevel@vger.kernel.org Subject: [PATCH rcu 25/27] fs: Remove CONFIG_SRCU Date: Wed, 4 Jan 2023 16:38:11 -0800 Message-Id: <20230105003813.1770367-25-paulmck@kernel.org> X-Mailer: git-send-email 2.31.1.189.g2e36527f23 In-Reply-To: <20230105003759.GA1769545@paulmck-ThinkPad-P17-Gen-1> References: <20230105003759.GA1769545@paulmck-ThinkPad-P17-Gen-1> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org 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. Signed-off-by: Paul E. McKenney Cc: Jeff Layton Cc: Chuck Lever Cc: Alexander Viro Cc: --- fs/locks.c | 25 ------------------------- 1 file changed, 25 deletions(-) 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, struct file_lock **flp, } EXPORT_SYMBOL(generic_setlease); -#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.) nfsd @@ -1923,30 +1922,6 @@ void lease_unregister_notifier(struct notifier_block *nb) } EXPORT_SYMBOL_GPL(lease_unregister_notifier); -#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