diff options
| author | David Laight <[email protected]> | 2023-12-29 20:53:49 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2023-12-30 10:25:51 -0800 |
| commit | 7c223098212957a1ecd8768e8e747ae2cf88e880 (patch) | |
| tree | 5b971c46e74a4d0f405d2120e1c38bccff490773 /include/linux | |
| parent | f016f7547aeedefed9450499d002ba983b8fce15 (diff) | |
locking/osq_lock: Move the definition of optimistic_spin_node into osq_lock.c
struct optimistic_spin_node is private to the implementation.
Move it into the C file to ensure nothing is accessing it.
Signed-off-by: David Laight <[email protected]>
Acked-by: Waiman Long <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/osq_lock.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/include/linux/osq_lock.h b/include/linux/osq_lock.h index 5581dbd3bd34..ea8fb31379e3 100644 --- a/include/linux/osq_lock.h +++ b/include/linux/osq_lock.h @@ -6,11 +6,6 @@ * An MCS like lock especially tailored for optimistic spinning for sleeping * lock implementations (mutex, rwsem, etc). */ -struct optimistic_spin_node { - struct optimistic_spin_node *next, *prev; - int locked; /* 1 if lock acquired */ - int cpu; /* encoded CPU # + 1 value */ -}; struct optimistic_spin_queue { /* |