From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ed1-f53.google.com (mail-ed1-f53.google.com [209.85.208.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EBBE737702E for ; Sat, 22 Aug 2026 12:17:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787401032; cv=none; b=dS0XGHGd1JK4eWD11S4k1NplBGlzX1lGB/bFfSIoc6fhtWHIILDFcGPR/E+Us8rAApXcFWbcGkxHhqdzcCCQhjHi8rpbcpogL8xf67oPhDx9Ot1CcahI/i8NYu75EH5M1JDdbFbES4Iisg553tWnz8Zdt05DS/40clyxrelwQjU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787401032; c=relaxed/simple; bh=FSHFaf84+K1WEeLxw+lt7p4CyHZ1xmh8ft4DVc489SA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=lwaHmMXPFXjNKlgMtf//XoLPzfVVDbUhHtKFM2LbBzQiJRt0/yJauxL66LI9xWttjtGSPpAlIYps5RcII0ee8HF+3FIsHrpCNHfUm4Z7NcsIWPeklDCyHp1T5XVKtnc37DHDUlI7k5ytUAw61H0lPUxnFy5/WkJCAyasxfB+dqU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=ZtpacSKD; arc=none smtp.client-ip=209.85.208.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ZtpacSKD" Received: by mail-ed1-f53.google.com with SMTP id 4fb4d7f45d1cf-6a17cb94b26so3886847a12.3 for ; Sat, 22 Aug 2026 05:17:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1787401027; x=1788005827; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=MCK7+BAcRGf3cJd5hC9mXgWW8o3rf0I1eoOWIWB/QlM=; b=ZtpacSKDpcbVkxoyRlaCUvy76+YPFFw4UrZjHGK72wiLRpM7z9Zb9CSY/KPrbrkYLz vtuO6j2VXTWORMser2fCN6Oy/c0qMR3/twyX6iuXMZYgicg9ytSbB+gTeE4FETmSP6nb Mg6ZbLHhhkwhcAIBB5QnnhVPgAQpAPLq+tYz2JHFsdiC/emVsojxCN2lkPmAWdlT12RU 2mV3+UiIeT8xti6Fc1MXEXM92F/ZVN297FDRBxeWDP8eE2dHUiige/B9dfbFj78TZcHs oRCHBAkOW2zHpirOkL+oeqhW/U2UT3NfN93eW7brBMXs9Gbj1mOS17K5WKEIebot5MPg Ey0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1787401027; x=1788005827; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=MCK7+BAcRGf3cJd5hC9mXgWW8o3rf0I1eoOWIWB/QlM=; b=Qw9MrzBqWIh9UHuSgX+3z9VEYvKBIYaD7F7uK4DmxmLdpYr1lLvo+AKV5Y9bMozE5P Sk98YCZt/Zrn6RJikL+G3/zWl5VThHagSSrikcpCqZ9Ft3yjnS62V8gnpkYD4svqWm/u 9eZ49aw2I42X7NRPZWpem1jAs/Dmc6nVMNLxItX5GFx+DN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eNzeGQgS X-Received: by 2002:a05:6402:4613:b0:698:9e5e:5df8 with SMTP id 4fb4d7f45d1cf-6a42f1aca88mr12849258a12.7.1787401026969; Sat, 22 Aug 2026 05:17:06 -0700 (PDT) Received: from localhost.localdomain (dynamic-2a02-3100-a0f5-8c01-3de3-cd62-aa6f-2fb0.310.pool.telefonica.de. [2a02:3100:a0f5:8c01:3de3:cd62:aa6f:2fb0]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-6a3ff0c30casm10998322a12.7.2026.08.22.05.17.06 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Sat, 22 Aug 2026 05:17:06 -0700 (PDT) From: Karl Mehltretter To: Jonathan Corbet Cc: Karl Mehltretter , Shuah Khan , Randy Dunlap , "Paul E. McKenney" , Boqun Feng , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 5/7] docs: this_cpu_ops: Fix SRCU helper names Date: Sat, 22 Aug 2026 14:16:49 +0200 Message-Id: <20260822121651.1559-6-kmehltretter@gmail.com> X-Mailer: git-send-email 2.39.5 (Apple Git-154) In-Reply-To: <20260822121651.1559-1-kmehltretter@gmail.com> References: <20260822121651.1559-1-kmehltretter@gmail.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 Use the actual srcu_read_lock_nmisafe() and atomic_long_inc() helper names. Fixes: df0cee43114b ("docs: Improve discussion of this_cpu_ptr(), add raw_cpu_ptr()") Assisted-by: Codex:gpt-5.6-sol Signed-off-by: Karl Mehltretter --- Documentation/core-api/this_cpu_ops.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/core-api/this_cpu_ops.rst b/Documentation/core-api/this_cpu_ops.rst index 533ac5dd57507..367706d1714b1 100644 --- a/Documentation/core-api/this_cpu_ops.rst +++ b/Documentation/core-api/this_cpu_ops.rst @@ -150,10 +150,10 @@ preemptible code are addressed by raw_cpu_ptr(), but such use cases need to handle cases where two different CPUs are accessing the same per cpu variable, which might well be that of a third CPU. These use cases are typically performance optimizations. For example, SRCU implements a pair -of counters as a pair of per-CPU variables, and rcu_read_lock_nmisafe() +of counters as a pair of per-CPU variables, and srcu_read_lock_nmisafe() uses raw_cpu_ptr() to get a pointer to some CPU's counter, and uses -atomic_inc_long() to handle migration between the raw_cpu_ptr() and -the atomic_inc_long(). +atomic_long_inc() to handle migration between the raw_cpu_ptr() and +the atomic_long_inc(). Per cpu variables and offsets ----------------------------- -- 2.53.0