]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
locking/qspinlock: Clarify pending field layout
authorWEI-HONG, YE <1234567weewee457@gmail.com>
Mon, 25 May 2026 13:04:50 +0000 (13:04 +0000)
committerPeter Zijlstra <peterz@infradead.org>
Wed, 3 Jun 2026 09:38:46 +0000 (11:38 +0200)
commitcb19b8a9add2ed3774c1276e0a3906e52e8cf39a
tree55f4743f6f39a919b57845d86c094a893711bb72
parentb64b19fa1a90baed3c20f9a02f44ecd2b928010f
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) <peterz@infradead.org>
Acked-by: Waiman Long <longman@redhat.com>
Link: https://patch.msgid.link/20260525130450.723937-1-1234567weewee457@gmail.com
include/asm-generic/qspinlock_types.h