Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2171356lqt; Mon, 22 Apr 2024 03:45:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU4ro1rN3F80FbYTE0qrkTlyYinHFK9CnB1bVCGxiTPuye0RMspfMSEahj+VbLWjgCR0PSGxcPcapgQDdDmpdxMbMyWY67W2Igcn4w6vA== X-Google-Smtp-Source: AGHT+IFHL8fgrXZmWANVpAGPizhdw0nWfzMvo5QkHMa29jUqVUQe3B6vShGvOsmVzfbG4c39NsIi X-Received: by 2002:a17:907:724b:b0:a55:b021:c2c with SMTP id ds11-20020a170907724b00b00a55b0210c2cmr4219412ejc.21.1713782714391; Mon, 22 Apr 2024 03:45:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713782714; cv=pass; d=google.com; s=arc-20160816; b=ilc/MwZOCa+NfoqGreoOAcmY4tptoztLcSLg+1P5iB5qjcSvePM9YQqfM1idWKKVmn tQ5YrVd6Byucp1k8/KWTZchGqy3yzpVcW/YoaBdQbpbDzHe1qFKNtM0RRaxrOIX7EPtO U/uzj01EDNBu+hW+qaAlCr/1aXtTX08gpsuujEmX2yl9V+NCNKfmVMVGPpMzcN1e9PJz jJhB8c0aH3IxZR/Gem2utxwNhY63cY+2Nv8ZvuNbdqooNG/wn8yZcVLpCFRtfn9VdHU9 8oQtiakxXu9DpFZAer8m++wvSR0F8qsAeUiSC6Z4dGOglGiuLcT1JVf8fveRVUpCbZIF ufkw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=JRSV7WW6TKUdgNuM/a9BevwmvdkzonjbItAtgouades=; fh=vexAT+Oug1C9ak6mmG4VPZTYBj9tp7fwhEFm3x1uBc0=; b=eXfVS0QiFTCCwSIbV2zMZssw/YhTGYFAcLnJJInBYlyl2u70e8jKAIdbsIFAoAfLej 3gU9vgUmPsuTKywpnJsklC00GLb+6eVHqBG4ofQ/QChVD4iAUhQXiFdPlWJfsM7ZYE3A VUrgbRW4/53Ebh0s1Occd1z+KGrIhHdcyS/jWg79qQ+/1lUMwF2Ia+J66dOBRD3woBEr pzB1/7Wo70jWvOb5nFgNgF0+5dM1ga6ULHH15AYIZkkd63TuL+H+meBv7A39BaTZwj+g q/yRP8z1iYVcoZrFG4bDbw+d74nxyE2gc8At2yyuAywg86w1L9o0zNiOMGPdLBxFnHeQ 0BbA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eTEtvMCU; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-153224-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153224-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id um10-20020a170906cf8a00b00a51bcc2b175si5798363ejb.270.2024.04.22.03.45.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 03:45:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-153224-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eTEtvMCU; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-153224-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153224-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 236291F2123C for ; Mon, 22 Apr 2024 10:45:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1524814A09B; Mon, 22 Apr 2024 10:41:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="eTEtvMCU" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 346F114601A; Mon, 22 Apr 2024 10:41:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713782471; cv=none; b=hQRrq8QZ9QUqiLCV6YkZmgd6ZJ/sO4f+H6DmKcxy324Y5mP3MIOwXSTXAGnMXXDYJ3/i7Jyup9MoiCEdybdykcPoEcB88p8clIJpOcfSk+/pdZ35z5vcFETJxYnDQ6Yx7BTI0sKCgnguOY8pClkBhDXHGY3DE1JAiBxbNhpHyRs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713782471; c=relaxed/simple; bh=UMMhTPVp5+n0u8R/1MYYZbZJH5bo2RsgLFP6+90kcZU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=n3plsA8kqh6m4zHd39PnCS6ebRJhtY/dQTs5umiNTKmYQHeiJFlQ1NH/qhNJzj9PYZvAAU2jcT8SgLrPNtQ8lnQjXreMmIm8KcKakQv4fDyNA0IfUYDV3U2m+kwFTx88+FFdhddkXuXKoDFI70jFqgwtmXZi6qlwdpulpgKNuH8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=eTEtvMCU; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 76096C113CC; Mon, 22 Apr 2024 10:41:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713782470; bh=UMMhTPVp5+n0u8R/1MYYZbZJH5bo2RsgLFP6+90kcZU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=eTEtvMCU2BrK3aMpIPMeiBUYghzL1ra+t5NpqdGPTHw3P6pla/D5r3u4bAP4kDl6N IKchv3pOL4ENZKUgH1XtVi7NZXNaKLLluh+kb+i0q+8y4QdFtA3zQt/GNjB74Vr990 9dLfz5cQ7zuPgjzu7LWsas8TCmcP/FwnryKEdRYfqpkhwl8ginFjS5oi1BFhYOls7X 1pd6sgALzOkRjk4LVQypL97PIIBLjc5YOTj2aN9n5b1q5tb0uJa2bXUJJzpupB+fo7 kIQ3SdTtzO2PK/519YQEotYdH2gMy0uYvogdskoRuunTcweFSie8gtH5ibYgLDXAct a9hoscm3JEYsg== Date: Mon, 22 Apr 2024 12:41:08 +0200 From: Frederic Weisbecker To: Lai Jiangshan Cc: linux-kernel@vger.kernel.org, rcu@vger.kernel.org, x86@kernel.org, Lai Jiangshan , "Paul E. McKenney" , Peter Zijlstra , Neeraj Upadhyay , Joel Fernandes , Josh Triplett , Boqun Feng , Steven Rostedt , Mathieu Desnoyers , Zqiang Subject: Re: [PATCH 08/10] rcu: Implement PCPU_RCU_PREEMPT_COUNT framework Message-ID: References: <20240328075318.83039-1-jiangshanlai@gmail.com> <20240328075318.83039-9-jiangshanlai@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240328075318.83039-9-jiangshanlai@gmail.com> Le Thu, Mar 28, 2024 at 03:53:16PM +0800, Lai Jiangshan a ?crit : > From: Lai Jiangshan > > When the arch code provides HAVE_PCPU_RCU_PREEMPT_COUNT and the > corresponding functions, rcu_preempt core uses the functions to > implement rcu_read_[un]lock, rcu_preempt_depth(), special bits, > switching and so on. The changelogs don't explain the reason for all of that. I'm guessing from the cover letter that the purpose is to save some instructions on calls to rcu_read_unlock() due to inline calls and per CPU optimized instructions but it's hard to guess from the actual individual patches, which are meants to be the actual git records. Thanks.