Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2669331ybk; Tue, 12 May 2020 05:21:49 -0700 (PDT) X-Google-Smtp-Source: APiQypIZLKyJyY88cTfkfAhzeAZ7x42t3lw0HPN9eGIkdCYHxEuRgFW6OPh2Ju3BcUq3JrKLeM3j X-Received: by 2002:a17:906:1443:: with SMTP id q3mr17909348ejc.325.1589286109136; Tue, 12 May 2020 05:21:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589286109; cv=none; d=google.com; s=arc-20160816; b=d9kOSAnndtiYMKzokZk1JRj2Le5vfnD6s1JvYBUaDOAqsZCkFKhP22gS/FSJsULXdc gFWPHzhJChqIIU57Aow/eL5LF99Y89KV2jgi7DG0LG/XLlx+VCzhx6mqoNt5t3INJrOK nV/L5H33VKjktBalkWr92W7hpa0yCewIHNHUq9AmEpUiokSUUqidMxBVIulfhjceXc3O lOSD4CJQUV4gmUgQAHkDLIm/4rvXpYTElvMaPDI1lc46aFlCJXAMl/VgErF1MvOjV2GV 9ZRUPOEodaa3d2Ymxc75Pj4BRP+LeifNj8ZYopQXLBjbPbxWyfRqCBmPloxrbxD71KIb vEog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=W4NZ1llF0Z4m92e/kA7fGUhN8rsyumccC9AKXYP2kR0=; b=JExU3JEtC5Rxt4FpUaDPCQmUEKblI3mRaguM0Q17FG3pCPM5anCx/4Tqv5Q1DnK/WI N4mv0v7K6kDsUVRUMO8dUqL2hNQ8A+T2gvMDS2z7ZlHmXEpFCeb3Qm1YAPX8jPI2hgCk /kEjJj+Quyy257oYlmNMB+FaSkfzVCfdKnIEQdhyV9jFixvCTjV8XBtYsdlMEhPycJS9 8p0VYCIgUinlk3X8nJickRHGNym1f7Js3akFhJbHJq4ntF/bDyrkcnVNGh1npZtbAaTe aIJhay4Wpsq0tdMpqBKbfx+t0DUs6pXMevnw83JncGuR2iTiShzW1KQSVRR0whLLJOVu paVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=bg++uZ5k; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c12si8568622edx.92.2020.05.12.05.21.26; Tue, 12 May 2020 05:21:49 -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=@joelfernandes.org header.s=google header.b=bg++uZ5k; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729938AbgELMTj (ORCPT + 99 others); Tue, 12 May 2020 08:19:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729879AbgELMTi (ORCPT ); Tue, 12 May 2020 08:19:38 -0400 Received: from mail-qk1-x744.google.com (mail-qk1-x744.google.com [IPv6:2607:f8b0:4864:20::744]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C03A3C061A0C for ; Tue, 12 May 2020 05:19:38 -0700 (PDT) Received: by mail-qk1-x744.google.com with SMTP id z80so7722474qka.0 for ; Tue, 12 May 2020 05:19:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=W4NZ1llF0Z4m92e/kA7fGUhN8rsyumccC9AKXYP2kR0=; b=bg++uZ5k4M5kSyTUV7gHN4O99kUGciYssmUCs/DOQHIiZTKHWwj46w23RrfM1bgPIG tVDIlusLdtDoZ8clb+u2IBFuMMShX8f+PKwS4rtVBZXuT7ISjyMNpsqJvigdc6ebQNqV 3pEFeh+6iPaflpIYP3ExPKYjxm3Yl+VHX1NkI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=W4NZ1llF0Z4m92e/kA7fGUhN8rsyumccC9AKXYP2kR0=; b=sM/l8AjEBQPDFZjb+6Z5McGau++y6KTJrlGeeU9dqAq/3/6BZtAHgqPAkG22e+NcOg R2YOUiP38YwG3GVtuVeedX0c869V0P4ZND1TVp3vfCKgca7d6eb0fWJ0vCSq2PM3SHE/ ZgIvI24BjHlE+evx9PYTjmM5HqOuweILQ95AmaXww9VIU9D6EhBN5RvPsq7UqNYmeUpS ryQJ5ZC2CAy6eV94EuOCsyP/tlcd21RacEgVz7YmvEw1G2r8TzvMgnCLvKUCD1Twd5F6 z9bMD1zJNyUBoTqTUOABwV8pxeiQVy/cs6j9OfV4i1ts4J8uK1BYOtvP8n/MOUlD9IzC 6CCw== X-Gm-Message-State: AOAM531aBgIlvsW9EYZjmzhA+tjlvx2X/4AXkqIhyDarhslI0M42mgH4 ocQ9I5G/o8yvRO4ejL36X3dBeA== X-Received: by 2002:ae9:f50f:: with SMTP id o15mr7169609qkg.177.1589285977953; Tue, 12 May 2020 05:19:37 -0700 (PDT) Received: from localhost ([2620:15c:6:12:9c46:e0da:efbf:69cc]) by smtp.gmail.com with ESMTPSA id c24sm11657414qtp.44.2020.05.12.05.19.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 May 2020 05:19:37 -0700 (PDT) Date: Tue, 12 May 2020 08:19:36 -0400 From: Joel Fernandes To: Akira Yokosawa Cc: "Paul E. McKenney" , Boqun Feng , 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 Subject: Re: [PATCH 0/3] tools/memory-model, Documentation/litmus-test: Sort out location of litmus test and README Message-ID: <20200512121936.GA228684@google.com> References: <20200323015735.236279-1-joel@joelfernandes.org> <7809dbfa-7a76-8663-799a-908c4ead8d30@gmail.com> <21e1ba24-22d0-8083-770c-53d320ba5420@gmail.com> <20200511173348.GX2869@paulmck-ThinkPad-P72> <20200512021309.GA197229@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 12, 2020 at 08:50:45PM +0900, Akira Yokosawa wrote: [...] > > I think on top of this patch, I'd like to add a reference to the to the > > litmus test in tools/memory-model/ from Documentation/rcu/. > > Sounds reasonable to me. But for most people, it never changes its location. > Please find inline comments below. > > > > > Just to mention my rationale for Documentation/litmus-tests/rcu/, I was > > basically looking for a central place for RCU related litmus tests in the > > kernel sources and the idea of this new directory came up. > > > > For Akira's series, > > Acked-by: Joel Fernandes (Google) > > Thank you! > > > > > And could we add the following patch on top of Akira's series so we still > > maintain a reference to the moved RCU test?> > > ---8<----------------------- > > > > From 52fdb57551cc769d8bd690f4f2b22de36ddece99 Mon Sep 17 00:00:00 2001 > > From: "Joel Fernandes (Google)" > > Date: Mon, 11 May 2020 22:06:46 -0400 > > Subject: [PATCH] docs: litmus-tests: Clarify about the RCU pre-initialization > > test > > > > Since this test was moved to tools/memory-model/, make sure that it is > > at least referenced from Documentation/litmus-tests/'s README. > > > > Signed-off-by: Joel Fernandes (Google) > > --- > > Documentation/litmus-tests/README | 6 ++++-- > > 1 file changed, 4 insertions(+), 2 deletions(-) > > > > diff --git a/Documentation/litmus-tests/README b/Documentation/litmus-tests/README > > index ac0b270b456c1..53f09e74734a4 100644 > > --- a/Documentation/litmus-tests/README > > +++ b/Documentation/litmus-tests/README > > @@ -11,7 +11,6 @@ tools/memory-model/README. > > > > atomic (/atomic derectory) > > -------------------------- > > - > > Atomic-RMW+mb__after_atomic-is-stronger-than-acquire.litmus > > Test that an atomic RMW followed by a smp_mb__after_atomic() is > > stronger than a normal acquire: both the read and write parts of > > @@ -23,8 +22,11 @@ Atomic-RMW-ops-are-atomic-WRT-atomic_set.litmus > > > > RCU (/rcu directory) > > -------------------- > > - > > I loosely followed the convention of ReST documents in putting these empty > lines. But I don't mind if they are removed. > > > RCU+sync+read.litmus > > RCU+sync+free.litmus > > Both the above litmus tests demonstrate the RCU grace period guarantee > > that an RCU read-side critical section can never span a grace period. > > + > > +MP+onceassign+derefonce.litmus (moved to tools/memory-model/litmus-tests/) > > As I said above, for those who don't follow developments in the lkmm branch, > MP+onceassign+derefonce.litmus stays in tools/memory-model/litmus-tests/. > So, > > +MP+onceassign+derefonce.litmus (under tools/memory-model/litmus-tests/) > > looks better to me. Yes it stays under tools/.. but is referenced here. Sounds like you agree and the only change from my follow-up patch that you want is to change "moved to" to "under". If so, Paul do you mind applying my patch and fixing this up? Or do you want to apply Akira's 3-patch series first and then have me send you another one on top? thanks, - Joel