Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp920332ybk; Sun, 10 May 2020 00:27:12 -0700 (PDT) X-Google-Smtp-Source: APiQypJa8yrdECnclh4hahXqzoLKJSpTjMU68vQMqEn6M63bO3CepROIZCBPf/GBQkmBHpD3XQEo X-Received: by 2002:aa7:d9d8:: with SMTP id v24mr8381074eds.27.1589095632546; Sun, 10 May 2020 00:27:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589095632; cv=none; d=google.com; s=arc-20160816; b=MrCdjxf1+0r1hJdZolY4z4DRU0GSANdBrUdTgj5OEihcMsKF+IHICOd5HZWb6JyK6c s2Pc/ac6syekjBZSjZuPaKh4yMvMA0xKmNLTZR5+SdNkhvNoZSc4rgar21DWmi2A37eI VhXRlw3GoucGsU/sY4DP4LbsQ67nrxyy1l1xRGeitbHICZjSXOZ1QrR1D4xP8st4aTba IdsMLEcdgYNw6JR7I9KMNY1hfphCOi0cKugex0P7RgHX5DRRglcEB7SEbo47zmLziL9O 7jLo0WgoUyVFAZvfJdVP46NUEjBpIFMAF2S5bp8SGTVJSC5wB+TayiuceyC9x554aF7V T9kQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=3ipSF8Gln9hUnX3oEIlmTY2BJm9mZBVNd2bLwIIKios=; b=1Jg0zrcLgDaw+QT5r9dFzS60e7Eao79JAbVLDoLgxOPERaZGCuGjmqassCilABgt5o tcV2mpWxBRQ5dFZp3AbIHm9Skz9wLBOw+H1xUnHGNSX0JxKEem/DIny2DdmwgZTbP2J2 OL0FB/SSB7HzJRbLQAlmffPzHQPSO6bw8jAcl0HUp6uMaihxGiBNiQ6MO7FKGyU7QaW3 OmW9Y9A0LQYr0gOwrACTspXGTEEbsMjkuAzWJJU5Rmn3uU7bgq9r4eEWMBKBPNlb4Oih zToDkBfoa87WOFCnNMpCYJbCsvuDDNksXri6tYQaJKZaoLHiEnLtXXIGfITwEJ0sZnGp t0MA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SQXUkm96; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ca20si4067304edb.181.2020.05.10.00.26.32; Sun, 10 May 2020 00:27:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SQXUkm96; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728580AbgEJHY5 (ORCPT + 99 others); Sun, 10 May 2020 03:24:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725810AbgEJHY4 (ORCPT ); Sun, 10 May 2020 03:24:56 -0400 Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0D62C061A0C; Sun, 10 May 2020 00:24:56 -0700 (PDT) Received: by mail-pl1-x644.google.com with SMTP id u22so2549038plq.12; Sun, 10 May 2020 00:24:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=3ipSF8Gln9hUnX3oEIlmTY2BJm9mZBVNd2bLwIIKios=; b=SQXUkm96BH1+XfWVsXEP+gYzSmbV06SPgxvN8TcWwsw5eajQ3nGYQM9QbkqluOmQRC qYA3ta3iQzFuL9zX+ElSxepKCVTEAWWsHnNSAJ5btggTYH/8j61o66d3TJr3p5iGN+Cd HUvX5VfhGp2hCP3jFvxFRf1rIfrNIHZcTNvkCDpcv2+w1RF99emLHS9Vg6KO7CVZtkQu rKGMZl6foMvlbRixdfo7eBS9ljmNsecRhS046bRrX0fOdt9RzJRY7ho72JFGwUJe3fYD Zz+SM4NHWjED0Z+XWnTQTtXkiIquYN423WXE59gsjdr/6aw9rOuzvUfo4qUL59k/efHF yJSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=3ipSF8Gln9hUnX3oEIlmTY2BJm9mZBVNd2bLwIIKios=; b=pu/sOdSE1fNQo4EahK0DWe5CUMUlp7hx6VIIoGhQwyLfsB1iig5qK/dnpDF4FNZQsO iXnPuNCMfm8BLh2J6IBM9HJBXatJXTYiircyfQPh5c1tsh0vHyJqV1tsp6YRa1hDJvmW A3LeqRcIkgt1kGaglx7Y7FbnV06GblBre5VJuCGH6CzGuBr5o2Q7YfsPCtwLJzxVQeDk lVfHUPn9eoOgpidj4mvuUa+FD8k5NTDF5iLTYCOEaq4k3FqV0MNdUKJe28ob0dcNoOpq NDMGgWHbgZorzcxBA1KkxZsiZ1vqRcI9aI537vaQSKcxJJm5WjT+JjNneGeuc67V7ZO4 zgHQ== X-Gm-Message-State: AGi0PuavsrJmPNiZYerg/o8hbKtvo85hy65Wpdg+oohN3jP0OWFIftWp hYWligRtQ+1J6YeP7vrcLrg= X-Received: by 2002:a17:902:b948:: with SMTP id h8mr9616810pls.309.1589095496252; Sun, 10 May 2020 00:24:56 -0700 (PDT) Received: from [192.168.11.3] (KD106167171201.ppp-bb.dion.ne.jp. [106.167.171.201]) by smtp.gmail.com with ESMTPSA id i18sm6579206pjx.33.2020.05.10.00.24.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 10 May 2020 00:24:55 -0700 (PDT) Subject: [PATCH 2/3] Revert "Documentation: LKMM: Move MP+onceassign+derefonce to new litmus-tests/rcu/" To: "Joel Fernandes (Google)" , Boqun Feng , "Paul E. McKenney" Cc: linux-kernel@vger.kernel.org, vpillai@digitalocean.com, Jonathan Corbet , Alan Stern , Andrea Parri , Will Deacon , Peter Zijlstra , Nicholas Piggin , David Howells , Jade Alglave , Luc Maranget , Daniel Lustig , linux-doc@vger.kernel.org, Akira Yokosawa References: <20200323015735.236279-1-joel@joelfernandes.org> <7809dbfa-7a76-8663-799a-908c4ead8d30@gmail.com> <21e1ba24-22d0-8083-770c-53d320ba5420@gmail.com> From: Akira Yokosawa Message-ID: Date: Sun, 10 May 2020 16:24:51 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <21e1ba24-22d0-8083-770c-53d320ba5420@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From 898051fee51913f5b9bd01cab98beb8944ec50b2 Mon Sep 17 00:00:00 2001 From: Akira Yokosawa Date: Sun, 10 May 2020 13:43:34 +0900 Subject: [PATCH 2/3] Revert "Documentation: LKMM: Move MP+onceassign+derefonce to new litmus-tests/rcu/" This reverts commit a5cca3485d9206a9dbbc6f47d2a537e69b53cd82. MP+onceassign+derefonce.litmus is called out from tools/memory-model/Documentation/recipes.txt. It should be in the same directory as the other representative tests to help readers inspect it. Signed-off-by: Akira Yokosawa --- Documentation/litmus-tests/README | 3 --- .../memory-model/litmus-tests}/MP+onceassign+derefonce.litmus | 0 tools/memory-model/litmus-tests/README | 3 +++ 3 files changed, 3 insertions(+), 3 deletions(-) rename {Documentation/litmus-tests/rcu => tools/memory-model/litmus-tests}/MP+onceassign+derefonce.litmus (100%) diff --git a/Documentation/litmus-tests/README b/Documentation/litmus-tests/README index 79d187f75679..c4307ea9f996 100644 --- a/Documentation/litmus-tests/README +++ b/Documentation/litmus-tests/README @@ -4,9 +4,6 @@ LITMUS TESTS RCU (/rcu directory) -------------------- -MP+onceassign+derefonce.litmus - Demonstrates that rcu_assign_pointer() and rcu_dereference() to - ensure that an RCU reader will not see pre-initialization garbage. RCU+sync+read.litmus RCU+sync+free.litmus diff --git a/Documentation/litmus-tests/rcu/MP+onceassign+derefonce.litmus b/tools/memory-model/litmus-tests/MP+onceassign+derefonce.litmus similarity index 100% rename from Documentation/litmus-tests/rcu/MP+onceassign+derefonce.litmus rename to tools/memory-model/litmus-tests/MP+onceassign+derefonce.litmus diff --git a/tools/memory-model/litmus-tests/README b/tools/memory-model/litmus-tests/README index 79e1b1ed4929..681f9067fa9e 100644 --- a/tools/memory-model/litmus-tests/README +++ b/tools/memory-model/litmus-tests/README @@ -63,6 +63,9 @@ LB+poonceonces.litmus As above, but with store-release replaced with WRITE_ONCE() and load-acquire replaced with READ_ONCE(). +MP+onceassign+derefonce.litmus + As below, but with rcu_assign_pointer() and an rcu_dereference(). + MP+polockmbonce+poacquiresilsil.litmus Protect the access with a lock and an smp_mb__after_spinlock() in one process, and use an acquire load followed by a pair of -- 2.17.1