summaryrefslogtreecommitdiff
path: root/kernel/locking/lockdep.c
diff options
context:
space:
mode:
authorJinliang Zheng <alexjlzheng@tencent.com>2025-06-10 21:01:58 +0800
committerBoqun Feng <boqun.feng@gmail.com>2025-07-11 15:11:54 -0700
commitf84a15b90d96f3da99f67fea2e116850d99fb7c4 (patch)
tree0c12b88cfa1df02293945cc778cc9d0a83b06207 /kernel/locking/lockdep.c
parent99214efedea521f1b79fa2a28ff142e933fc3eba (diff)
locking/rwsem: Use OWNER_NONSPINNABLE directly instead of OWNER_SPINNABLE
After commit 7d43f1ce9dd0 ("locking/rwsem: Enable time-based spinning on reader-owned rwsem"), OWNER_SPINNABLE contains all possible values except OWNER_NONSPINNABLE, namely OWNER_NULL | OWNER_WRITER | OWNER_READER. Therefore, it is better to use OWNER_NONSPINNABLE directly to determine whether to exit optimistic spin. And, remove useless OWNER_SPINNABLE to simplify the code. Signed-off-by: Jinliang Zheng <alexjlzheng@tencent.com> Acked-by: Waiman Long <longman@redhat.com> Signed-off-by: Boqun Feng <boqun.feng@gmail.com> Link: https://lore.kernel.org/r/20250610130158.4876-1-alexjlzheng@tencent.com
Diffstat (limited to 'kernel/locking/lockdep.c')
0 files changed, 0 insertions, 0 deletions