Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp8620716ybn; Tue, 1 Oct 2019 10:41:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqz45L1dXcYGcD+jboWogckl/e8zB6DfL/ZgcF+pwUuY8AD82iNrh9OYZJhWVElfzlEcLETp X-Received: by 2002:a50:9fce:: with SMTP id c72mr9465516edf.166.1569951669705; Tue, 01 Oct 2019 10:41:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569951669; cv=none; d=google.com; s=arc-20160816; b=D2dA1Zo7/tsTWdGUfW0BRGIkTCxLfa9hwmrqeOKcQHwPxixXUAhtAkgaSfnKCHICzh kK6fPkVXa3pqTF7b3PYROn9sKcQHPd2bULYdpYN9eVDyb90k0wVj1A++HG486sPFvaXf aZ9RuQvePvGhXdlile/rKFd0GJ9Rcj/0ICTapluDpiZPpUl/yrvZN6KgcvbNFBW6pHD2 LNhA3pmF3nl/e1X2Sp3I2AN4SS3GBWUPTb9LE9wATT1wo08Mj0P4LURqEvsV1w/z/+fE ZrmJDegZroRDb9E4dfIB+coHNOu6wic49t5UvMg8wrDtOXU6vG7BBHrfbDnCAC2nlERP Ig9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:subject:cc:to :from:date; bh=ZM+HlTFZqF+QP5HF1PdeiTjXR4gssQ6bzpQa0T5qIic=; b=U7KI8k6qpUBEnuba7J8kHK54c1qNqdFA+cr6tUChalxQZnd/N77JU+GW14fmMnu+Fy qAHDdFfGkg4IBwMvRYP6Fx+iydr9/cD6Bm/nom70YppSlFwIp9K1Q50ge9Li1lBKu9jC s7KVERbmiq0NxLX+sBeotOu8X2j36BlRCrvWJZt2XkQCt7HkC5889eCfpFemvwN0IDJo RUKFckn7rZ98244C1Y5PtJyHu/gSb+ZBNJjMuXsRFuUXuQUzC9qUm/YRLgfKfh4QNnQO wQb9LiPXLN0owbX2BlNmJzkh+XlC+AhvvZNvDgk+Dd9UPUNZlESSuROkPFN27HHskR4g fsGQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e23si9091595edq.344.2019.10.01.10.40.45; Tue, 01 Oct 2019 10:41:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731053AbfJARjt (ORCPT + 99 others); Tue, 1 Oct 2019 13:39:49 -0400 Received: from iolanthe.rowland.org ([192.131.102.54]:48948 "HELO iolanthe.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1726063AbfJARjs (ORCPT ); Tue, 1 Oct 2019 13:39:48 -0400 Received: (qmail 5988 invoked by uid 2102); 1 Oct 2019 13:39:47 -0400 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 1 Oct 2019 13:39:47 -0400 Date: Tue, 1 Oct 2019 13:39:47 -0400 (EDT) From: Alan Stern X-X-Sender: stern@iolanthe.rowland.org To: LKMM Maintainers -- Akira Yokosawa , Andrea Parri , Boqun Feng , Daniel Lustig , David Howells , Jade Alglave , Luc Maranget , Nicholas Piggin , "Paul E. McKenney" , Peter Zijlstra , Will Deacon cc: Kernel development list Subject: [PATCH 1/3] tools/memory-model/Documentation: Fix typos in explanation.txt Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch fixes a few minor typos and improves word usage in a few places in the Linux Kernel Memory Model's explanation.txt file. Signed-off-by: Alan Stern --- tools/memory-model/Documentation/explanation.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) Index: usb-devel/tools/memory-model/Documentation/explanation.txt =================================================================== --- usb-devel.orig/tools/memory-model/Documentation/explanation.txt +++ usb-devel/tools/memory-model/Documentation/explanation.txt @@ -206,7 +206,7 @@ goes like this: P0 stores 1 to buf before storing 1 to flag, since it executes its instructions in order. - Since an instruction (in this case, P1's store to flag) cannot + Since an instruction (in this case, P0's store to flag) cannot execute before itself, the specified outcome is impossible. However, real computer hardware almost never follows the Sequential @@ -419,7 +419,7 @@ example: The object code might call f(5) either before or after g(6); the memory model cannot assume there is a fixed program order relation -between them. (In fact, if the functions are inlined then the +between them. (In fact, if the function calls are inlined then the compiler might even interleave their object code.) @@ -499,7 +499,7 @@ different CPUs (external reads-from, or For our purposes, a memory location's initial value is treated as though it had been written there by an imaginary initial store that -executes on a separate CPU before the program runs. +executes on a separate CPU before the main program runs. Usage of the rf relation implicitly assumes that loads will always read from a single store. It doesn't apply properly in the presence @@ -955,7 +955,7 @@ atomic update. This is what the LKMM's THE PRESERVED PROGRAM ORDER RELATION: ppo ----------------------------------------- -There are many situations where a CPU is obligated to execute two +There are many situations where a CPU is obliged to execute two instructions in program order. We amalgamate them into the ppo (for "preserved program order") relation, which links the po-earlier instruction to the po-later instruction and is thus a sub-relation of @@ -1572,7 +1572,7 @@ and there are events X, Y and a read-sid 2. X comes "before" Y in some sense (including rfe, co and fr); - 2. Y is po-before Z; + 3. Y is po-before Z; 4. Z is the rcu_read_unlock() event marking the end of C;