Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1893004lqa; Tue, 30 Apr 2024 02:19:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUdNrQWoJl+OOOY3CWDaZkCpnTnbYaNPGQY14sX5pf1CjnEagVlFKBXbeMgF12dmii0F+f4tvhQdeRVCz91WI4ebZvFKVdhBypusWqt+A== X-Google-Smtp-Source: AGHT+IHWnF0iDrGvf+5VbWeCqTjryeW3DHL+JZ0fnyyq0JLOcC6XKdbchNm8wIh/Y0rjEjBTGkul X-Received: by 2002:a05:690c:6389:b0:618:24ca:381c with SMTP id hp9-20020a05690c638900b0061824ca381cmr2159677ywb.19.1714468758717; Tue, 30 Apr 2024 02:19:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714468758; cv=pass; d=google.com; s=arc-20160816; b=XZ9IfQj4n7M5ZpDcbrnEIOEtI6LkH/2ANEH8woGVh+kfvT6301g4XR2RL8HWBvSx1B 5/mGcIKfmceU5evmJWryW9eNqSEv4Qqz9eoYccLUDH9zN+e4lisTb4fnQd6gDjQ/UtYu 8/gb0MG4s8qo2C2lgqP17588lJcktxyZQk8b22QYFRzPJEpHVtJTSiu6rzhxcUyKAetF ll21fjn0uMKywRMnXq7by6QBj7RkMRbfNuE2BOseSq5m7VlJPf7c3vu4iPXuSE7fGA3N 5FO/+zrbi5pKagY8VPPi58UcIWEyyUBnVHfeBpTfKaa4nYnGvsmSZi19gNk2i5h7UWlr CF4w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=L+QzE4nMM/IXDmBl/gQfk9o3dUS97Owm1KeM6oa2cDo=; fh=WzinSAfJjQwQsWhpsrf2fBMcmep3NnSwaYa0TI1U7L8=; b=FHu7w/iJGdFsCXocFza1iifzqajedY271Vi2661qGYK5CkfxkkS7p2q2nzQ8TnrRNb z+ujVNoBSStrFoTLvhZDUROhjGi5DBX8cBuGPVcaNJ77XVxrt8X+RHATcVHnCY/9vlw9 Un404INABwSA+GyehUbaeaKLxvdZ50JJuv8+ow5oYLhR/yxNL3NGAlZz2W0dMhQSasHg UTJhvKyjKDLmL9xHzEqwNj9OxMC8nl6+2YzIE6s5IVE1Rz2DHUhz2ZVsk7wWuqcvDGal D6Kqm9oSZBT7smTNe3g8n0iJQr3iJ9ra28NPQuYqqJLr9ClF7aextr//wzQJu7H7vBpP CmCg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=EQsybZG2; 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-163642-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163642-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id c15-20020ac87dcf000000b0043ac9dec9e6si5659812qte.337.2024.04.30.02.19.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 02:19:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-163642-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=EQsybZG2; 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-163642-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163642-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 72C771C22B2F for ; Tue, 30 Apr 2024 09:19:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BEF0713C66A; Tue, 30 Apr 2024 09:18:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="EQsybZG2" 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 8A1AE129E8A for ; Tue, 30 Apr 2024 09:18:26 +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=1714468708; cv=none; b=lL/r0GlPSasmVLqUnKNMajBSmr5szz6VaL1GHIs61BD+75OCWKvLacSBSqCtCFOdaUwCquVlx+h9lZvT4cLFTXnw1+1ddQs3RF57iNxZ1j8O+QkkEZOjkd1s6VNoEG5tNkgbmhgylT/D8VWZZ+H+z8MeHV+e6arTRmNJRTuWfCs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714468708; c=relaxed/simple; bh=FzoCm0SHtCsJ3kYDzu0estuogSzw1EbbPtNv/mWqBJ8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=he2rArlZg3NQV9hoojxKQjHLrUZ34/AsvH9x3u/u4vgJpvAtrj99sYtTlLC0H7/WhVpMr+gfAQ0uv2VKFDP0JShQ+HFcLXbUvt/9SD6DlOcJlufF3/9DOJ616CLhzxhd3vdJzQgxVoFpXkgnb6ymZx4l4suN0oFQ/9anEYpm4ks= 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=EQsybZG2; 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=1714468705; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=L+QzE4nMM/IXDmBl/gQfk9o3dUS97Owm1KeM6oa2cDo=; b=EQsybZG2rDa0izrEN/3/9SZBOF2khNwhNF2DjkjtAzFcRK8oN3qO1BbjGpMwxM4eD+euqB zpouASs6qIUjRu14oGIM9h5uejEGuJF1GQp5uAKgmYTTf8GpnZUhxUyB+QhTMppwunskb1 gWN5dSVuERLkcFXh4/OUGnemB2kSdYE= 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-572-_-Jnpc6RO-moxPY506shMw-1; Tue, 30 Apr 2024 05:18:21 -0400 X-MC-Unique: _-Jnpc6RO-moxPY506shMw-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (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 675681044573; Tue, 30 Apr 2024 09:18:20 +0000 (UTC) Received: from vschneid-thinkpadt14sgen2i.remote.csb (unknown [10.39.193.247]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D3E67492BC7; Tue, 30 Apr 2024 09:18:17 +0000 (UTC) From: Valentin Schneider To: rcu@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Frederic Weisbecker , "Paul E. McKenney" , Peter Zijlstra , Neeraj Upadhyay , Joel Fernandes , Josh Triplett , Boqun Feng , Steven Rostedt , Mathieu Desnoyers , Lai Jiangshan , Zqiang Subject: [PATCH v2 05/27] context_tracking, rcu: Rename ct_dynticks_cpu_acquire() into ct_rcu_watching_cpu_acquire() Date: Tue, 30 Apr 2024 11:17:09 +0200 Message-ID: <20240430091740.1826862-6-vschneid@redhat.com> In-Reply-To: <20240430091740.1826862-1-vschneid@redhat.com> References: <20240430091740.1826862-1-vschneid@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.10 The context_tracking.state RCU_DYNTICKS subvariable has been renamed to RCU_WATCHING, reflect that change in the related helpers. Signed-off-by: Valentin Schneider --- include/linux/context_tracking_state.h | 2 +- kernel/rcu/tree.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/context_tracking_state.h b/include/linux/context_tracking_state.h index ad5a06a42b4a0..ad6570ffeff3c 100644 --- a/include/linux/context_tracking_state.h +++ b/include/linux/context_tracking_state.h @@ -68,7 +68,7 @@ static __always_inline int ct_rcu_watching_cpu(int cpu) return atomic_read(&ct->state) & CT_RCU_WATCHING_MASK; } -static __always_inline int ct_dynticks_cpu_acquire(int cpu) +static __always_inline int ct_rcu_watching_cpu_acquire(int cpu) { struct context_tracking *ct = per_cpu_ptr(&context_tracking, cpu); diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c index e4295d040cc9b..5f6400a97471b 100644 --- a/kernel/rcu/tree.c +++ b/kernel/rcu/tree.c @@ -303,7 +303,7 @@ static void rcu_dynticks_eqs_online(void) static int rcu_dynticks_snap(int cpu) { smp_mb(); // Fundamental RCU ordering guarantee. - return ct_dynticks_cpu_acquire(cpu); + return ct_rcu_watching_cpu_acquire(cpu); } /* -- 2.43.0