Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6940491rwl; Wed, 22 Mar 2023 18:56:07 -0700 (PDT) X-Google-Smtp-Source: AK7set+FStvd0X+DFzNkssz+YApk/Ie/4uLtmf6hlfTAiblw6kqYA19Z2QZeAnY4bB4rLGpglb+r X-Received: by 2002:a17:90b:384c:b0:23e:f856:147b with SMTP id nl12-20020a17090b384c00b0023ef856147bmr6289878pjb.11.1679536566947; Wed, 22 Mar 2023 18:56:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679536566; cv=none; d=google.com; s=arc-20160816; b=LGR/54R5QLihStLoqQqGyFSVt76PeMcIygtVN3LU1b/dKaYNKTl3gbE/ye82QAULE6 0OsxhB6XojYgt0Qctyjr5kK5zqIUWBREwwUODvKcms8JjQovyuuT/68abGqiJwL6TzmB ERoH/Hc0jr1cQzdC56cf/icoMfe5O5o80giWH7HxlFQWNxzEbjLw/iALvVegRr+eJ5Mo YKNUHn1HliEOFXJ/SEVcAk/EvIjqReI7dLPgT0mzfr5an1pmB0bB3zBwAkwGCtBrEACG zT76Zih/Bg9fFR1rIL49tpGTkh+avEASfTNAa49xJHnb1F+M9bMrjEIa6z73i/UEZbnt rlNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Hx83mLYB0uVsFbGY6Wby96cUKHTfd8VZ8vjQKL5Nn6g=; b=zKsPD4ueo6tihn9FQLuJa3yfqpLTUeq9K/SMsyIVFOv+PqD1oA+7af6ZI2s+H8tWNw VjAM2OKpX7k7vo1IsFw8iUO8Cjym1kLQBmQnLW8cu60j74EaeYzDGHU4n0DJJvZrL9sk NQYN4cek42wB74HC/voSbyGQBWRBaNLD8QAnR2YQyZR90LpXqSjwx110gdT8I5pEVvDO /OXuNvxQU39sY7JeJn7d1imMDOgawIIHB5hKKg8qN688ZrAYf028SlVPUooO8hqCyJbn o3kVV/9qq+1EIq7A+elS7nNKQeNsoakfNHnjJ8GG6HTqWSz/E09/7AlYp57256V0Ibso CumQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=qG3vNbDg; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a4-20020a17090a8c0400b0023d3ecf85c5si475237pjo.59.2023.03.22.18.55.54; Wed, 22 Mar 2023 18:56:06 -0700 (PDT) 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=@gmail.com header.s=20210112 header.b=qG3vNbDg; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229871AbjCWBih (ORCPT + 99 others); Wed, 22 Mar 2023 21:38:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229519AbjCWBig (ORCPT ); Wed, 22 Mar 2023 21:38:36 -0400 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B959D199D4; Wed, 22 Mar 2023 18:38:34 -0700 (PDT) Received: by mail-ed1-x533.google.com with SMTP id y4so80531320edo.2; Wed, 22 Mar 2023 18:38:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679535513; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Hx83mLYB0uVsFbGY6Wby96cUKHTfd8VZ8vjQKL5Nn6g=; b=qG3vNbDgD+fNHoY8I10At78xdGtDKt921ZSahtqen4y+9p+Vgm8sPLgB5YTiRbX4/r IRG/yFAKzD6e0rRBS4IZJk4zxiV6WR1tduYYzUy56TBJRKPdEFAvoTDvcbehsGNM8WL7 QNECmv0wDJuSTYQtTD6GSd54cnXx2oJNNNaha3OJkQn4ZMZwI1dtEhll/J76TW0dy/Cv PI7qkbJSu+os/RwVBYL6ZeqAOCCKp61QEJ9811XqPE6hvKismsyuU9aDM2xQ77RssEG0 QIUXhL1cs4EMsdyZjpcixCXh3TaYCUE/4g+peLcyWfIYSFW7Ff/NrVP7G4/zzhfiiVa8 yz1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679535513; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Hx83mLYB0uVsFbGY6Wby96cUKHTfd8VZ8vjQKL5Nn6g=; b=pc0AhsnZE+Cyue1/mux+TpmFTKkcC9PjeQF1kyPAjFELpbzc8Si27JA1oMf/FSeKFQ ydIhvx7WY+kuOl7cHp/j4sWgILsRVe13fmCXLgQKIviEC69hZ5Ji7ZRfT8zGgZI8rwke Iskppy9OIjqCWVGBWDTegPfya0L7JYefo+erPipIuX+xQO6PrtC18lVcagulSRqMfjlM feeKNwbSxwCtR1+0G0cHZm8wYQB/ffwOGTLn6blu2MrbTAduyoa45IqPiOeXnufFpR8M su4bUK5cOm+MtDUuMIdWU3t/oyYa0Xy+LWMpX1UmBtCp4RIsq2tAxk1iy78lC+RlA/AN qXtQ== X-Gm-Message-State: AO0yUKUVKLxtenUueiiXZMpwbytRfa9ZOdac3HmXGcgZIk9KQJ8IBGrG ba93htdqvkHlhMkjAe6ComvXq4ZhnDWJb1dR X-Received: by 2002:a50:e619:0:b0:4fd:298a:62cb with SMTP id y25-20020a50e619000000b004fd298a62cbmr3952932edm.21.1679535513052; Wed, 22 Mar 2023 18:38:33 -0700 (PDT) Received: from andrea.. (93-41-0-79.ip79.fastwebnet.it. [93.41.0.79]) by smtp.gmail.com with ESMTPSA id v18-20020a50a452000000b004c3e3a6136dsm8404626edb.21.2023.03.22.18.38.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 18:38:32 -0700 (PDT) From: Andrea Parri To: stern@rowland.harvard.edu, will@kernel.org, peterz@infradead.org, boqun.feng@gmail.com, npiggin@gmail.com, dhowells@redhat.com, j.alglave@ucl.ac.uk, luc.maranget@inria.fr, paulmck@kernel.org, akiyks@gmail.com, dlustig@nvidia.com, joel@joelfernandes.org Cc: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, Andrea Parri Subject: [PATCH] tools/memory-model: Remove out-of-date SRCU documentation Date: Thu, 23 Mar 2023 02:37:51 +0100 Message-Id: <20230323013751.77588-1-parri.andrea@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 Commit 6cd244c87428 ("tools/memory-model: Provide exact SRCU semantics") changed the semantics of partially overlapping SRCU read-side critical sections (among other things), making such documentation out-of-date. The new, semantic changes are discussed in explanation.txt. Remove the out-of-date documentation. Signed-off-by: Andrea Parri Reviewed-by: Joel Fernandes (Google) Acked-by: Alan Stern --- .../Documentation/litmus-tests.txt | 27 +------------------ 1 file changed, 1 insertion(+), 26 deletions(-) diff --git a/tools/memory-model/Documentation/litmus-tests.txt b/tools/memory-model/Documentation/litmus-tests.txt index 26554b1c5575e..acac527328a1f 100644 --- a/tools/memory-model/Documentation/litmus-tests.txt +++ b/tools/memory-model/Documentation/litmus-tests.txt @@ -1028,32 +1028,7 @@ Limitations of the Linux-kernel memory model (LKMM) include: additional call_rcu() process to the site of the emulated rcu-barrier(). - e. Although sleepable RCU (SRCU) is now modeled, there - are some subtle differences between its semantics and - those in the Linux kernel. For example, the kernel - might interpret the following sequence as two partially - overlapping SRCU read-side critical sections: - - 1 r1 = srcu_read_lock(&my_srcu); - 2 do_something_1(); - 3 r2 = srcu_read_lock(&my_srcu); - 4 do_something_2(); - 5 srcu_read_unlock(&my_srcu, r1); - 6 do_something_3(); - 7 srcu_read_unlock(&my_srcu, r2); - - In contrast, LKMM will interpret this as a nested pair of - SRCU read-side critical sections, with the outer critical - section spanning lines 1-7 and the inner critical section - spanning lines 3-5. - - This difference would be more of a concern had anyone - identified a reasonable use case for partially overlapping - SRCU read-side critical sections. For more information - on the trickiness of such overlapping, please see: - https://paulmck.livejournal.com/40593.html - - f. Reader-writer locking is not modeled. It can be + e. Reader-writer locking is not modeled. It can be emulated in litmus tests using atomic read-modify-write operations. -- 2.34.1