Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp4062189rwb; Mon, 31 Jul 2023 00:02:46 -0700 (PDT) X-Google-Smtp-Source: APBJJlHCy/tJ1Tz+yAXArfSOjHtpcWx6d2Xgu5AXmXC4KMwT+so5WesmFcatItUX/rv7xmUjfmtD X-Received: by 2002:a17:907:788d:b0:99c:441:100a with SMTP id ku13-20020a170907788d00b0099c0441100amr4148687ejc.10.1690786965938; Mon, 31 Jul 2023 00:02:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690786965; cv=none; d=google.com; s=arc-20160816; b=l3TR8Uf0dXvK1gQJ5Q0sBVLx/lGhwQ8s6+/y4JXnP1v++lXJF6I3pOHNuk2ozeiwBv XSjp3fTx7J4fG1FB1p0gPv261i8j2Ixjt/lixPOiX4ncKX5wb05CIphezoyRQHdLWAFc /3zXdOJhm3PaoyNZ0S1Uf+urvNL7ts/NNQb1IHE9DUkpiR1IoHsxg4n7iQDENbLyEvHZ bPckb+3JGrby6xxoRq8mCEFU0hJFdDE0gBZMYWW58eYPvYnjVoHj7f8wTWoBWBwIJ+cV S5t/vDeogcqZrYMvXSFbRUBINLZbmIBE6Mt838JQNXety1VEDPf2EM0yXhg9M5u8ANIA 2XuA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=/exWp4MbE5xclwWmabWYmuVH+wPBLpgzCDBP1j4pM8s=; fh=BG1K0WrNCDl2IiSLnDtgJLHPQBaNsmsTJjqgDAImPg0=; b=gxtD1B7oC1wLAGMIKmoGz06v9udRYRsoSqjN7qwy99rLmzRlp1M4zYRPKLtReh9mks l/brwzUOjl77zK4kM74tNhcxGLBYFA6LsZQS1APm5h/zpxIrYwLp6biE+IS9WgV/rMm4 rjcxlyQ9FSRx1O4Rb5I7U7tDBHp17TOtZS33X2SpaVlbXposNn+Qrs6KKu/0lwBcsxnH CNsRkSO+BAXNYL7nEYyHLLLPjZXy54RMySdTfT3R6DzA+z3aIPGsmmvhh9OwdfFCKsCs 7R+OWDZxJbLTTdixWJelukHpUvCOIvDKd/l9PoSBfu44+BjQKURzTMJsQu/E0eQ9G+lr RACw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=uT4EBg8+; dkim=neutral (no key) header.i=@suse.de header.b=Kb1RAWXt; 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=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id se27-20020a170906ce5b00b00992ee199abdsi6882675ejb.276.2023.07.31.00.02.16; Mon, 31 Jul 2023 00:02:45 -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; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=uT4EBg8+; dkim=neutral (no key) header.i=@suse.de header.b=Kb1RAWXt; 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=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229941AbjGaGvs (ORCPT + 99 others); Mon, 31 Jul 2023 02:51:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230043AbjGaGvr (ORCPT ); Mon, 31 Jul 2023 02:51:47 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D036CE68 for ; Sun, 30 Jul 2023 23:51:27 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 5C98D22427; Mon, 31 Jul 2023 06:51:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1690786286; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/exWp4MbE5xclwWmabWYmuVH+wPBLpgzCDBP1j4pM8s=; b=uT4EBg8+BtHNv2wLbop6a991XubzH7gBLtYtoLVW/5UaFZNIMKROXSPIa5xUeCuq7T/W2Q rLWlqoLhTVz9fy3bI5PAvv6YZk/t7y7pTgcA7iBI3FtISXvI3eT9cEwuUChhU1x6oYmQqZ GLiZjDkodiZZMvdi/OyYCTSTU5+hzA4= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1690786286; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/exWp4MbE5xclwWmabWYmuVH+wPBLpgzCDBP1j4pM8s=; b=Kb1RAWXtez3LkcZCkOdsMhvCSbvJlUg6W/6OVMORTP8esNON+8SpG5wt3T2idtnGMyrveC cPP2aTabEu36wpDA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 1FBDB1322C; Mon, 31 Jul 2023 06:51:24 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id gmsAMexZx2SgbwAAMHmgww (envelope-from ); Mon, 31 Jul 2023 06:51:24 +0000 From: NeilBrown To: Chuck Lever , Jeff Layton Cc: linux-nfs@vger.kernel.org Subject: [PATCH 02/12] FIXUP: SUNRPC: Deduplicate thread wake-up code Date: Mon, 31 Jul 2023 16:48:29 +1000 Message-Id: <20230731064839.7729-3-neilb@suse.de> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230731064839.7729-1-neilb@suse.de> References: <20230731064839.7729-1-neilb@suse.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 The returned value is not used (any more), so don't return it. Signed-off-by: NeilBrown --- include/linux/sunrpc/svc.h | 2 +- net/sunrpc/svc.c | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/include/linux/sunrpc/svc.h b/include/linux/sunrpc/svc.h index c3f7726fc9f2..110f4560be38 100644 --- a/include/linux/sunrpc/svc.h +++ b/include/linux/sunrpc/svc.h @@ -434,7 +434,7 @@ int svc_register(const struct svc_serv *, struct net *, const int, void svc_wake_up(struct svc_serv *); void svc_reserve(struct svc_rqst *rqstp, int space); -bool svc_pool_wake_idle_thread(struct svc_serv *serv, +void svc_pool_wake_idle_thread(struct svc_serv *serv, struct svc_pool *pool); struct svc_pool *svc_pool_for_cpu(struct svc_serv *serv); char * svc_print_addr(struct svc_rqst *, char *, size_t); diff --git a/net/sunrpc/svc.c b/net/sunrpc/svc.c index deb40d527b32..cbfd4ac02a4d 100644 --- a/net/sunrpc/svc.c +++ b/net/sunrpc/svc.c @@ -701,11 +701,8 @@ svc_prepare_thread(struct svc_serv *serv, struct svc_pool *pool, int node) * service thread and marking it BUSY is atomic with respect to * other calls to svc_pool_wake_idle_thread(). * - * Return value: - * %true: An idle thread was awoken - * %false: No idle thread was found */ -bool svc_pool_wake_idle_thread(struct svc_serv *serv, struct svc_pool *pool) +void svc_pool_wake_idle_thread(struct svc_serv *serv, struct svc_pool *pool) { struct svc_rqst *rqstp; @@ -719,14 +716,13 @@ bool svc_pool_wake_idle_thread(struct svc_serv *serv, struct svc_pool *pool) rcu_read_unlock(); percpu_counter_inc(&pool->sp_threads_woken); trace_svc_wake_up(rqstp); - return true; + return; } rcu_read_unlock(); trace_svc_pool_starved(serv, pool); percpu_counter_inc(&pool->sp_threads_starved); set_bit(SP_CONGESTED, &pool->sp_flags); - return false; } static struct svc_pool * -- 2.40.1