Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp4540844rwj; Tue, 20 Dec 2022 11:31:20 -0800 (PST) X-Google-Smtp-Source: AA0mqf5qS2mkdQGwnQ07dG8C22vVhTSPPuz64NEhspBxyIl6in8mgAitJovWcL5u75NnFMFzPEs1 X-Received: by 2002:a17:903:41c5:b0:18e:41de:666a with SMTP id u5-20020a17090341c500b0018e41de666amr58675877ple.32.1671564679869; Tue, 20 Dec 2022 11:31:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671564679; cv=none; d=google.com; s=arc-20160816; b=i0W5GRvFVXx3vbr3mlSyskCnw6IdQ/ig2dTr7vsa4V/lXWEKqxnGH7w/lIxX0QKtNb w4KHObuSx/ytjdqJIDqmn2Goj9h9SVJnrGTyIFErCzSLPPbHvK8FwniXCnh2gmIuQ9SA edY4ZpW4PtNzH9qlCLks3s3HxZhJq4OSS26qywGXbv4ajUXPEB0htDRg+xR+idzggubb kGOkJFV8DtAsZp1j7YeCkaDAyrrecYXnKIr3gCLap2dmXvJ0NZ9WrtGMzt5AHktcIcEu 0O94Tt/4sQ9gBWEbDNff0IYffzttiUOdnlPwyGMR6JfZzNmmhyostsu9c6P5PPWLE6rg Q1lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Xg+52SvVGYApQhqtIigywWzKm933YMrVdATy1YEpcK4=; b=JYtp1PsJBa5/3QifTrLqHI6RnHbQYHON430M828pVlUoVdzZ1MLpTos6v4EoVX2Jxk SEd5wsQ0jZI9FePIRdPeruwGU0dfFb/uoHaq/mGhJsvKL9u3Bd0TkSFs9Ww2V3+n1ZPx PR+N5QtF8qSEnOwyrEHNDKgMnwDY9ZFPO0BgNunTvee25u7W70YLOyiu0lD1N0ZvgB/T FDpD0QKYD/KTouHKZZbs/Bok6md/UYiHexk+HSXsjiYgTs1g9VJ0CQvfRRHvralK6B5b WTC3+nv+sEjZmipCOi+Zi5wGgiK1NMMhYHJMaDice9TAn+8fb76jmbNgh3Bu982XwpOO NNVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=DxxUoHNL; 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=efficios.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m36-20020a634c64000000b0047895cb2289si15546425pgl.644.2022.12.20.11.31.10; Tue, 20 Dec 2022 11:31:19 -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=@efficios.com header.s=smtpout1 header.b=DxxUoHNL; 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=efficios.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229756AbiLTTBZ (ORCPT + 68 others); Tue, 20 Dec 2022 14:01:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233953AbiLTTBJ (ORCPT ); Tue, 20 Dec 2022 14:01:09 -0500 Received: from smtpout.efficios.com (smtpout.efficios.com [167.114.26.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 001371BE8E; Tue, 20 Dec 2022 11:01:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=efficios.com; s=smtpout1; t=1671562865; bh=/0Oi+DHifoIwufO7cQbm0fgGedMbH1T10vLjdK1ObKI=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=DxxUoHNLNUIpL8TX8lq5TJKcZAC0pnvtN0HObWtd2d13Ujtje7O0DyDmd1tsPJ95r kNUFOHx1ZXGpm2yT0mTVqaKcd7Xo83s1Q3b3hrGHXdjjCbgPipQRgpZFxdj1hLrlJT FzuQO7d65d0kI1bsFuLe3cZu4hGQEqEPuEVMRgF2LEkYqVj7v9w5ZXUNrBaAe3TTb7 MfN+hZF2LEbfV+Hd3b8Y8lRL5QI1b/D4Fn4vAtlJp0o77eG8wUsK6DrSmBvdZ8uy0E BlZyTrtRRunMU9rJK2Ym1XUuvE8J9lYDcpl0Ub0Tm6KCmLgBDoGS+34sKXWoIA9YZk J7kptzFA5gthw== Received: from [10.1.0.30] (192-222-188-97.qc.cable.ebox.net [192.222.188.97]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4Nc5Wj1HFCzbnm; Tue, 20 Dec 2022 14:01:05 -0500 (EST) Message-ID: <5bd5ee4a-710a-96bc-abe8-772b2e60f478@efficios.com> Date: Tue, 20 Dec 2022 14:01:30 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: Re: [RFC 0/2] srcu: Remove pre-flip memory barrier Content-Language: en-US To: Joel Fernandes Cc: linux-kernel@vger.kernel.org, Josh Triplett , Lai Jiangshan , "Paul E. McKenney" , rcu@vger.kernel.org, Steven Rostedt References: <6438d903-ab97-48c7-c338-9f0bc2686f94@efficios.com> <7A9876BA-C375-42A7-A5C9-FD940D2898D7@joelfernandes.org> From: Mathieu Desnoyers In-Reply-To: <7A9876BA-C375-42A7-A5C9-FD940D2898D7@joelfernandes.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,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 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 ? Thanks, Mathieu -- Mathieu Desnoyers EfficiOS Inc. https://www.efficios.com