Message ID | 20221019225144.2500095-14-paulmck@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp573038wrs; Wed, 19 Oct 2022 15:57:19 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4OS07Io9ye2euwnwz1xJCr4HKvUdk8qFHi7aFZZ+kOKuzQFW6Nbf3f7kARgTAWimIC9YZ1 X-Received: by 2002:a17:907:6d8c:b0:78d:b65a:ab12 with SMTP id sb12-20020a1709076d8c00b0078db65aab12mr8148464ejc.573.1666220239655; Wed, 19 Oct 2022 15:57:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666220239; cv=none; d=google.com; s=arc-20160816; b=zcfL0qhHoLzwkvvCpWu45clju1BKyaikwEdbDFBLyWBOyymjm7+CnF9qsqeVYOzVde VCEplCoz/4ZD9rVOxVqmGziDQeCaMI+vP56l8XiK2GY1sVqAak+xIXZQOU530xBKBPvE xQ6qS+xHsTgngjxdtPbMX+8lZ99Fz83LTKCpygfKGaH5wqtWxV5QPK6aopKgizuKxvnr ObdKtV7ABBA+TptkX4QS0s9anD24UEn9cyEJAD+xGOPh8BiwCXdkx4rWyUTSPi26I2IY bBRTqg01HKWq2gPVxHasvOw3+3xftggswI94a8DOpg66GSNK/MOZULsBDwIJIItRJaMD F5rQ== 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; bh=c0iuPeG+yMsWHub0q2E5PAsCRc63CJ+blqzTojScTBM=; b=tcNxRTJwsf3sLWbFQZImFf5hiky95sjcfrNJYXi1GqoQQ7/+D9PiGFEjLbnd7cUeQ2 v9JEY/SezP03hsXoPqx5bAKcXFWGscFzDpxIOGHVE4F4f1r4cNZEy4JnkvxflKkYOqic Liv7Vgy7xqU9v2Qoy6ATrPeA7UiOpQV5NoyzMeuWgsTCx/b4QP0jizmUcJ1PB0+eh+2c VBiM/YiD6cF6h13jbGf6u31h1JbiXbwdpqa42tjTXazrNGhNcZBvFy4WRHSD1CChYwlB Zu3M1sTplqUL2fHW5zOvvhY82JBiUydwnq5da8h3Zi2IophHRXU6xWN1SlTwemN537MU Ys/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Cz96/20x"; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nc23-20020a1709071c1700b00783a0e64f86si17767460ejc.7.2022.10.19.15.56.55; Wed, 19 Oct 2022 15:57:19 -0700 (PDT) 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="Cz96/20x"; 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 S230306AbiJSWwd (ORCPT <rfc822;samuel.l.nystrom@gmail.com> + 99 others); Wed, 19 Oct 2022 18:52:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230266AbiJSWvx (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 19 Oct 2022 18:51:53 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1485918F27F; Wed, 19 Oct 2022 15:51:50 -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 E64C6619E8; Wed, 19 Oct 2022 22:51:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 388EAC43156; Wed, 19 Oct 2022 22:51:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666219907; bh=RL61tOwimeBcU4/Vfql47BzA0BOTvlir0vUZt/Njig0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Cz96/20x4CieacmsCHfXGXf22cmpZZpQLoV+8usewU9hRJspL4ooU4Pxu+9K2EXFG mThTNKGqTjG0TsUKUUP6pEm9Cxl30fEpyAc2cGXKnIWr9glas7ieDnYS7IQXpa46wJ awcwKw4A3BWg1cHTtQRUSF5K4E6ltIQchbyCjLYldvtCQ2lzmUP2eC79z0MSn5Js6B xpxY2fV7hzdeYwOirjrx7tgVucLlQ3std5DSee86C1q8BAAoW9PVnISsiefYWcGcQZ Y2sXBgwD57W+E6szViTyIj6EfdmMOcaBG3SmJ4dr92rbvolD2jNTKCDwxVHbwzu6Az 0T7v05UiCo7JA== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 8ED6C5C0F19; Wed, 19 Oct 2022 15:51:46 -0700 (PDT) From: "Paul E. McKenney" <paulmck@kernel.org> To: rcu@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel-team@fb.com, rostedt@goodmis.org, "Joel Fernandes (Google)" <joel@joelfernandes.org>, "Paul E . McKenney" <paulmck@kernel.org> Subject: [PATCH rcu 14/14] rxrpc: Use call_rcu_flush() instead of call_rcu() Date: Wed, 19 Oct 2022 15:51:44 -0700 Message-Id: <20221019225144.2500095-14-paulmck@kernel.org> X-Mailer: git-send-email 2.31.1.189.g2e36527f23 In-Reply-To: <20221019225138.GA2499943@paulmck-ThinkPad-P17-Gen-1> References: <20221019225138.GA2499943@paulmck-ThinkPad-P17-Gen-1> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.4 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747158553768052047?= X-GMAIL-MSGID: =?utf-8?q?1747158553768052047?= |
Series |
Lazy call_rcu() updates for v6.2
|
|
Commit Message
Paul E. McKenney
Oct. 19, 2022, 10:51 p.m. UTC
From: "Joel Fernandes (Google)" <joel@joelfernandes.org> call_rcu() changes to save power may cause slowness. Use the call_rcu_flush() API instead which reverts to the old behavior. We find this via inspection that the RCU callback does a wakeup of a thread. This usually indicates that something is waiting on it. To be safe, let us use call_rcu_flush() here instead. Signed-off-by: Joel Fernandes (Google) <joel@joelfernandes.org> Signed-off-by: Paul E. McKenney <paulmck@kernel.org> --- net/rxrpc/conn_object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/rxrpc/conn_object.c b/net/rxrpc/conn_object.c index 22089e37e97f0..fdcfb509cc443 100644 --- a/net/rxrpc/conn_object.c +++ b/net/rxrpc/conn_object.c @@ -253,7 +253,7 @@ void rxrpc_kill_connection(struct rxrpc_connection *conn) * must carry a ref on the connection to prevent us getting here whilst * it is queued or running. */ - call_rcu(&conn->rcu, rxrpc_destroy_connection); + call_rcu_flush(&conn->rcu, rxrpc_destroy_connection); } /*