Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp4788977rwj; Tue, 20 Dec 2022 15:13:36 -0800 (PST) X-Google-Smtp-Source: AA0mqf5ExHZzXIPTk1EVHhvM0V0NnUMQ6QkX3g4ogC581x8d5K8eqGwUh3P0eWsW7JlhAk1E0/Tk X-Received: by 2002:a17:906:2a1b:b0:7ae:1724:88dd with SMTP id j27-20020a1709062a1b00b007ae172488ddmr40916521eje.73.1671578016737; Tue, 20 Dec 2022 15:13:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671578016; cv=none; d=google.com; s=arc-20160816; b=Geaars7jIVm7xqc3WxWU1gusOO8HlBvrO7zdyw1xWtnzI8yTDima+rWkTZLg9KfWLQ RC2rJDsuyYzikFpmqNXaOYUZxw0IrIb5MyrX59hFTf+2Vbxo9H8yMjzucG29f1bsTGEa JjXHLa5EXKBYdLKzhhcHMEBd0vyt/3i7snyBzPTkMSJ3TGJuVqdzafYCyNf9pFVLXzFk dx0QktCdIbfUlUxQOij3hFZsXJoYutTke5kdw0EHWoNEEL5zCFkFvIY1Ix4mZF/oAXFZ jbBUvU3Q1yUqAQLq9Nnqn5sqfmq8w9S0J/oTPTsaQZDzPn7A1a8J3WBHa3Or7IPmkVO6 Kd5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=p47S1pUVU1Tm9E/Vcwg/e4DoxenizVPDalEsLc2VHo4=; b=lScJgGkvqGxYH6e93NmTgpY3Q3bOoe6D6j4ilxDPdW+ePmRql8UGlVOKhrcGG0RTcq aFjdZsnXuUi69xQwSmLx47Tna8jlmIbeBR9ur1Eh00inFtKa/994vn13tZVcCmKmr/A1 3/P37X1a9aiWu4qx2gEkzISwBzJqLEmnukX00aPpOfoexugWik70VDLm3JpE3Jnc7bFj CpQ3HWByZM6LvLcCTHTCFXjvvVv9lhLGm3dkTa0GFL+8Pl3+EMD6xDSdG7XjdIADdzni qjhupwGjcviyd0rhiJSxcERUIzQKdXzQXR6ZoYypP9zewDuQ8NaYlxIM1v55L7/fMwq4 6oNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hdjsc4KM; 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 sb34-20020a1709076da200b007af039d0bcasi9413184ejc.429.2022.12.20.15.13.19; Tue, 20 Dec 2022 15:13:36 -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=hdjsc4KM; 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 S234161AbiLTW6U (ORCPT + 69 others); Tue, 20 Dec 2022 17:58:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234140AbiLTW6M (ORCPT ); Tue, 20 Dec 2022 17:58:12 -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 377CB1F2F1; Tue, 20 Dec 2022 14:58:02 -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 EAE67B81A01; Tue, 20 Dec 2022 22:58:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 271BCC433EF; Tue, 20 Dec 2022 22:57:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1671577079; bh=8+lijh8xkYJmCW+tgcGnoiFR5gOK2W4q0pc0yUXBS2w=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hdjsc4KMNZycrNr4Kh6u0XxZnE8UVFNrAgQlXeYr8IUtudF+K9G8k53HrZSorZdqN d3gWl1tbuO8jWghgJbxNR2XuRaMx1Ts7FMznRo/hZG8TKbKHAsjG6SNGjUcEwETUCU x1jiEC3ptSHNdHFryr3BXldur0+N1fbUmJTTatKPqbXwx9vha14pA3FPy4NHExQJoM Q+xO9UdirY2zcEp8SCn5kS4Ggzyawo5fn7S7B1zi528meJur9GibenGyikCu+GKvG7 IvJBf8g3tpHOW0bRKGFBzgrUjVmiI85tZ3wJevcEvxLRXETqfIaNbg21LU8BwcV1to 5Kyk4J44Y8Qnw== Date: Tue, 20 Dec 2022 23:57:56 +0100 From: Frederic Weisbecker To: Mathieu Desnoyers Cc: Joel Fernandes , linux-kernel@vger.kernel.org, Josh Triplett , Lai Jiangshan , "Paul E. McKenney" , rcu@vger.kernel.org, Steven Rostedt Subject: Re: [RFC 0/2] srcu: Remove pre-flip memory barrier Message-ID: <20221220225756.GB26563@lothringen> References: <6438d903-ab97-48c7-c338-9f0bc2686f94@efficios.com> <7A9876BA-C375-42A7-A5C9-FD940D2898D7@joelfernandes.org> <5bd5ee4a-710a-96bc-abe8-772b2e60f478@efficios.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <5bd5ee4a-710a-96bc-abe8-772b2e60f478@efficios.com> 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 Tue, Dec 20, 2022 at 02:01:30PM -0500, Mathieu Desnoyers wrote: > On 2022-12-20 13:29, Joel Fernandes wrote: > > > > > I do want to finish my memory barrier studies of SRCU over the holidays since I have been deep in the hole with that already. Back to the post flip memory barrier here since I think now even that might not be needed… > > I strongly suspect the memory barrier after flip is useless for the same > reasons I mentioned explaining why the barrier before the flip is useless. > > However, we need to double-check that we have memory barriers at the > beginning and end of synchronize_srcu, and between load of "unlock" counters > and load of "lock" counters. > > Where is the barrier at the beginning of synchronize_srcu ? rcu_seq_snap() ? > > Thanks, > > Mathieu > > -- > Mathieu Desnoyers > EfficiOS Inc. > https://www.efficios.com >