Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2649216imu; Mon, 19 Nov 2018 04:03:20 -0800 (PST) X-Google-Smtp-Source: AFSGD/XBiPn1ySJCzLmkXQQGKMAK/cLsAE4f3XoDTfPVuMEHtskK+9tfJP7xlDlvz+9OJqXjz9XJ X-Received: by 2002:a62:a117:: with SMTP id b23-v6mr4817347pff.163.1542628999991; Mon, 19 Nov 2018 04:03:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542628999; cv=none; d=google.com; s=arc-20160816; b=tlXdH0vmfBlqM78SpjkLPjQR4FazI9IL6N1LOqO+36UkzRhNezvSS4uz7eusXCzJuv WYdS65B5lQoaEFuftOTabIDrnBEiTxD5viKN+2zu31wP2QkBiG1OeJoJH/+YYSUzU0KV RHn2Cur+fSWI05QCos9uWiWhE7cvt6PIGdzMirrFgs6I8TSAwxjXYz95XIvwwFikINxY NHy3l9W1aSiJoLWYVsI/S6coewmcdJqOy6PPKiYp25ui79UvOiju0H75LW8QQ+Sv46ss JAek9UbFAtMU79NJzU7iZJDMESK8/XoMuBR+v9KJW0Av89lkegUYZjIYNLpqBu1rQkY0 fYdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=angNVikouVV1hQggHvxAxK1U/spjX2MVCqjysxUeeGE=; b=rQD7IFwbXrsTIlx4XFpPUoxnDCknUqFRkHzTBZHbB3jGHwEfWB+xdtnOPvF9T2eFJg 9yJjkWFLB5A41kHNoJxkP2XltDbN/Pb2wzK9gL1oNzitCmodyuWtO6Gw4NDv+1YfeqA8 zdP9IQbAwe8z2e9hQJkuDZqALlyqkafmSt/Bd6WBE4Ma7g0929kjSFI4AUyzf2MzBWeo f20suz6zfFOds3n2GYlb08DDJlKW8RJ5OT4nG+uYIh4/J4qsxlV67/3IomRhsO/p0G3T FpOxTRkBWaMnI7K8NSZbOazRNQ3LZsG8wfeMtlndE1Nq6fk+wEZ1iwo192iuphlnsn8R 28uQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=jX6Rw3By; 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 j13si11715566pgi.227.2018.11.19.04.02.33; Mon, 19 Nov 2018 04:03:19 -0800 (PST) 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; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=jX6Rw3By; 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 S1728722AbeKSWYz (ORCPT + 99 others); Mon, 19 Nov 2018 17:24:55 -0500 Received: from mail-ed1-f65.google.com ([209.85.208.65]:38974 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728635AbeKSWYz (ORCPT ); Mon, 19 Nov 2018 17:24:55 -0500 Received: by mail-ed1-f65.google.com with SMTP id b14so22602987edt.6 for ; Mon, 19 Nov 2018 04:01:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=angNVikouVV1hQggHvxAxK1U/spjX2MVCqjysxUeeGE=; b=jX6Rw3ByAgzHKKf+9V/k82nuOuQkZv/gx2z2SEO4L/kWRsjiH1X1hX8F1lgqdLRQsP +PGyJ55/Mk/EkHkHIpiu5k7C5H+bImYMqxe0kt8eTBLV8JuoIPOW7bujewHrIWv/3//J ty6V8zeHZOsusbiYg8Qz2A9rTaoWGEcCe+Ozo= 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:user-agent; bh=angNVikouVV1hQggHvxAxK1U/spjX2MVCqjysxUeeGE=; b=aTQLAW6BMLCurJTfd5OvZHT+eWeKZszPAAiB/wE8jhEYyCCwmiDlVJdsc4kMpnMUcb RKMBsj1ISPoFQ+sdPea05V0C8W9Cs9MduFt8Z8HF5hwXQG+YxvbB98E1+S8Sp+GTQZZl goRQAGgQoui4L1D06ODBGJSvKZJgPX4OairGfjyDS9bwrYFpr2kaVWwsdQN9C1/P/d1H CcCOtmonC6Z9UBXXj3iZtE9UVMSMR9VLxsdFrDn7kymyLWRHZMWgY+fF8EwC1oC7ARFe 7GgbOkK7ZVqox2biEuepZbcAAAx4VRglh2Z4nohc1Kiq3XEEfKTsR2KoorWCXEstIt32 dq6g== X-Gm-Message-State: AGRZ1gLa1ysrK8b5wUtyhDP92Y3K98IKt0Swl0i12mdoBXr5tvytLGnh cVNmiwfaGVBTnNbr9EPxOKtRJA== X-Received: by 2002:a50:b54e:: with SMTP id z14mr19398260edd.239.1542628888987; Mon, 19 Nov 2018 04:01:28 -0800 (PST) Received: from andrea (85.100.broadband17.iol.cz. [109.80.100.85]) by smtp.gmail.com with ESMTPSA id x38sm4036758edx.24.2018.11.19.04.01.27 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 19 Nov 2018 04:01:28 -0800 (PST) Date: Mon, 19 Nov 2018 13:01:20 +0100 From: Andrea Parri To: Alan Stern Cc: "Paul E. McKenney" , LKMM Maintainers -- Akira Yokosawa , Boqun Feng , Daniel Lustig , David Howells , Jade Alglave , Luc Maranget , Nicholas Piggin , Peter Zijlstra , Will Deacon , Kernel development list Subject: Re: [PATCH 0/3] tools/memory-model: Add SRCU support Message-ID: <20181119120120.GA5092@andrea> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 15, 2018 at 11:19:24AM -0500, Alan Stern wrote: > Paul and other LKMM maintainers: > > The following series of patches adds support for SRCU to the Linux > Kernel Memory Model. That is, it adds the srcu_read_lock(), > srcu_read_unlock(), and synchronize_srcu() primitives to the model. > > Patch 1/3 does some renaming of the RCU parts of the > memory model's existing CAT code, to help distinguish them > from the upcoming SRCU parts. > > Patch 2/3 refactors the definitions of some RCU relations > in the CAT code, in a way that the SRCU portions will need. > > Patch 3/3 actually adds the SRCU support. > > This new code requires herd7 version 7.51+4(dev) or later (now > available in the herdtools7 github repository) to run. Thanks to Luc > for making the necessary changes to support SRCU. Thank you Alan, Luc. My only suggestion is to integrate changes to explanation.txt (in part., Sect. 22), which the above renaming and refactoring make out-of-date. For this version, Tested-by: Andrea Parri Andrea > > The code does not check that the index argument passed to > srcu_read_unlock() is the same as the value returned by the > corresponding srcu_read_lock() call. This is deemed to be a semantic > issue, not directly relevant to the memory model. > > Alan >