Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp1638181lqo; Sun, 12 May 2024 11:08:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXrx+d6hoxCrtTJy7nmS72c+G2KasGmtsOMbbqj9Xurk510a4ndC0mEJXnYWRARprHhQbkvctbP9C75ixHsSpAeTUZqBGCOAewTPNMIHQ== X-Google-Smtp-Source: AGHT+IGYIlb5J6YksxdXGcOFeZ16dJjnx86Ct+yg2m446RQfFXubaovRPwlnfssyxUYc35UiB7/h X-Received: by 2002:a17:90a:ce16:b0:2b6:226a:ddcb with SMTP id 98e67ed59e1d1-2b6cc759186mr5912795a91.19.1715537327973; Sun, 12 May 2024 11:08:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715537327; cv=pass; d=google.com; s=arc-20160816; b=XgFbodIreZrLkRLZwAtuRHCXwg54lU4W9urXPNsSGCq5T5MnM+JpHHDeSDgilTzTh+ KsDc4yMfzDbo9JwLSaV10vEVvXlIsbqc3Gtkpe1+F8NPhqmePNWX6ZChoUKLefuSmeK4 9tmzt6lmW6Oe6J2QyY2xhLb/ds25iNZ99y3yyBvKlYOAx2VFm3xUXIcuCCoaDHHpMdGx dGtaFezNU7ogBDBT/luFkGnsF3E7AIxxBJCZy6r+wrOGL5DUC1I6/V9cVe+yOgCZJsyJ NxLOdcn8KhlrcdlCp3WhYZkgNe6B9NGZ689yEry2eG1m+VPKD9Y8VfFC3pZDPmrMZSTF J8WQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=tztii3p8SZMsVIHQ5f8coEr0bKYwPgUvG+i8/bhgAYU=; fh=LMiQG8eTLzf1SyU4W+POK32JVDLYXD5v2M9mE6EPfzs=; b=WJwIT/XDgZo1sDo5kCgE/v8hHFlj8dpe0MVT8r2oowRzMqvGkGHnNMFv+Rgh+Din6d PaaaBM+1w+n6ssumOyGVllJ0x1b+nUnTXcPK1PpWrKRLSiptKnaWe6K6n7KGxDZsxhWK 0+gQDnKrUAAK/sSWJg6oZ3THeRR56mXgqYi2e1P95t1YmSxDLv5bVtLhHbYmhVzhnrm7 SY1Rs8ybeXDPn6qMgNjuLgrwVUinfKphGZ2o37UglPuztcrRe9jlw+tjj+Nm7bLTpb+n +1gQ/Av04IoQNnB5gx7p88FRigEQTJhnYlmjaUZHAp66T/fxVgXtfQA7ivEkbc4Rbkxe AArg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ZyqQtejg; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-176969-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-176969-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-634103f6f61si7653951a12.422.2024.05.12.11.08.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 May 2024 11:08:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-176969-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ZyqQtejg; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-176969-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-176969-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id BF915B20CB9 for ; Sun, 12 May 2024 18:08:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1B4D04F211; Sun, 12 May 2024 18:08:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="ZyqQtejg" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 73B6846B9F for ; Sun, 12 May 2024 18:08:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715537314; cv=none; b=dcqfnArfUbxW0Awt37gRHDG8Ri1BmJhEEPVI8hYzBwNXZIjHbU5E+0BjjzOjVklEUq05HwMFBgYX/FyXwCn/RHQEbTqRlfHNItbWdcIeSw0cunCM+wUJPhMWjjnwrp6miTSSsl6Sbe/AtSu1Y9MBBM4arizLYnFqXf40uf6MgYU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715537314; c=relaxed/simple; bh=tztii3p8SZMsVIHQ5f8coEr0bKYwPgUvG+i8/bhgAYU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=apY/1YHq0vTOViG7NrDjLyM1gB7TJI7Uf+CJF/IrzS3X58QGWijCAZoXiofu0fRDbZzh0EyVtfuvkoKwrKVHBrn0Q+gAw/t+yg1npTmo/Fjw9jpRJex1zJLFE8OfM7zPiFwzWTHS8EJWFAy3vtqcDyTCUHSwr2mAGg+ucBhQYto= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=ZyqQtejg; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1715537311; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=tztii3p8SZMsVIHQ5f8coEr0bKYwPgUvG+i8/bhgAYU=; b=ZyqQtejg3/7J419VBp32kKjLkxxeRPLWI1/t2yQ9AlRtTDECu/VPmDovw1IXB+chgK6vnc BC7v7SevKwdS7cCwhOgM777niKCYLF4tqNgjOOKHVJm9oDzT0b0FjWa+uSMSbhmY0Nkfyu N8A6Aaj7PFgICj/VuFmZaXQsPe0Hp6c= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-518-JsOViRZSMRqC-C8qVT_yjw-1; Sun, 12 May 2024 14:08:25 -0400 X-MC-Unique: JsOViRZSMRqC-C8qVT_yjw-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 43DAD812296; Sun, 12 May 2024 18:08:25 +0000 (UTC) Received: from dhcp-27-174.brq.redhat.com (unknown [10.45.224.31]) by smtp.corp.redhat.com (Postfix) with SMTP id 61E542026D6E; Sun, 12 May 2024 18:08:22 +0000 (UTC) Received: by dhcp-27-174.brq.redhat.com (nbSMTP-1.00) for uid 1000 oleg@redhat.com; Sun, 12 May 2024 20:06:59 +0200 (CEST) Date: Sun, 12 May 2024 20:06:55 +0200 From: Oleg Nesterov To: "Paul E. McKenney" Cc: "Uladzislau Rezki (Sony)" , RCU , Neeraj upadhyay , Boqun Feng , Hillf Danton , Joel Fernandes , LKML , Oleksiy Avramchenko , Frederic Weisbecker , Peter Zijlstra Subject: Re: [PATCH] rcu/sync: don't read rcu_sync->gp_count lockless Message-ID: <20240512180655.GE7541@redhat.com> References: <20240507093530.3043-1-urezki@gmail.com> <20240507093530.3043-26-urezki@gmail.com> <20240512111948.GC7541@redhat.com> <550cf35c-4fb3-4f06-95b2-9206425d74cc@paulmck-laptop> <20240512165529.GD7541@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.4 On 05/12, Paul E. McKenney wrote: > > How about like this? LGTM ;) Oleg.