From nobody Mon Jun 8 08:29:03 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 E24E248C8D6; Wed, 3 Jun 2026 14:25:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780496720; cv=none; b=MkDzJzkS/1a88XgJ/HiRYZvB9VmXin4jYM+Lddruw8/lv2307GXhlHPbxLSknStzAeQ3UmLQo5LwYfvF3zBKEYLVt40ezW1SBdfA9PU4a0aHjTlXSt+bihrXSHQZKR+31EZf0qadC0prTBwdF4TnvwT+LjjB2dyJU7L2fNFRQ0w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780496720; c=relaxed/simple; bh=dLZO7XNWGY/ha0tu94psAPQq3AepXC2nPQrI3TmJ+gk=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=Mxtx1jNjiI92tRZkYnNbRw90LP3pqj3SNEKHGVSzrLDxMPMyTOsuWlViKqDqBEAQxRYr1FQHIZJq+sKx/9JaGyD5bKllOJLiZ0m5FbbG37bK5w6YB5yIHq+IMEVUOcUI5P9tdK5uTDx3qD43zSb86E/ptUqNvrduw4WJTnkByWk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=vvm6d0pa; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=mcArXJsP; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="vvm6d0pa"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="mcArXJsP" Date: Wed, 03 Jun 2026 14:25:15 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1780496717; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Mo3rVicMPCOTTE39whgQT9ex87vF5u5gl6XLEQq3Tdo=; b=vvm6d0paKCbaVACBawvp9Bo4l1Q1DfcrxKhCs26YPGp+dH2OrKbzzulsz1KDvJQUmj+e9c MrPnqsKn7lydnZEcH/X+398PWuDSAZZKhUqG2R4eNtJU/yPyJ/ab6RoMQlY0MGMhdaIIE2 LaTyaO8HKwWqZc/AhcajTrp9hnSiB+Z0Dx/W5j/cizvJVIj2Hd13sAPAfM2fs67Ahmpbzy kcivIXA0OYyFI/I0h/29ZVK3zKXgjE0KND+sw3hhvhdUa8ZOjhLeNNb7iWjDndOc8plekS SzWdJ0hBv8jR7Erz2v9ddpSw5PGq0Cs3mXuSaKCj0e0W+l244C6t2LwsfDmNig== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1780496717; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Mo3rVicMPCOTTE39whgQT9ex87vF5u5gl6XLEQq3Tdo=; b=mcArXJsPAx704YZ2tLNW1Y6T73WNHX7JJznKMJapYgPvbGLKv756MyjtbEqHQ+5ECHRnqq yA64DwkO7zSJc2Dw== From: "tip-bot2 for WEI-HONG, YE" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: locking/core] locking/qspinlock: Clarify pending field layout Cc: "WEI-HONG, YE" <1234567weewee457@gmail.com>, "Peter Zijlstra (Intel)" , Waiman Long , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260525130450.723937-1-1234567weewee457@gmail.com> References: <20260525130450.723937-1-1234567weewee457@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <178049671569.710.9560967737115128108.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the locking/core branch of tip: Commit-ID: cb19b8a9add2ed3774c1276e0a3906e52e8cf39a Gitweb: https://git.kernel.org/tip/cb19b8a9add2ed3774c1276e0a3906e52= e8cf39a Author: WEI-HONG, YE <1234567weewee457@gmail.com> AuthorDate: Mon, 25 May 2026 13:04:50=20 Committer: Peter Zijlstra CommitterDate: Wed, 03 Jun 2026 11:38:46 +02:00 locking/qspinlock: Clarify pending field layout For CONFIG_NR_CPUS < 16K, _Q_PENDING_BITS is 8 and the pending field occupies bits 8-15 of the lock word. The current comment documents bit 8 as pending and bits 9-15 as unused, which describes the pending flag value rather than the field layout. Describe bits 8-15 as the pending byte so the layout description is consistent with the lock byte. Signed-off-by: WEI-HONG, YE <1234567weewee457@gmail.com> Signed-off-by: Peter Zijlstra (Intel) Acked-by: Waiman Long Link: https://patch.msgid.link/20260525130450.723937-1-1234567weewee457@gma= il.com --- include/asm-generic/qspinlock_types.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/asm-generic/qspinlock_types.h b/include/asm-generic/qs= pinlock_types.h index 2fd1fb8..7d17b9b 100644 --- a/include/asm-generic/qspinlock_types.h +++ b/include/asm-generic/qspinlock_types.h @@ -53,8 +53,7 @@ typedef struct qspinlock { * * When NR_CPUS < 16K * 0- 7: locked byte - * 8: pending - * 9-15: not used + * 8-15: pending byte * 16-17: tail index * 18-31: tail cpu (+1) *