Commit 01117332 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: six locks: Simplify optimistic spinning



osq lock maintainers don't want it to be used outside of kernel/locking/
- but, we can do better.

Since we have lock handoff signalled via waitlist entries, there's no
reason for optimistic spinning to have to look at the lock at all -
aside from checking lock-owner; we can just spin looking at our waitlist
entry.

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent ee841b77
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment