Commit 84a37cbf authored by Kent Overstreet's avatar Kent Overstreet
Browse files

six locks: Wakeup now takes lock on behalf of waiter



This brings back an important optimization, to avoid touching the wait
lists an extra time, while preserving the property that a thread is on a
lock waitlist iff it is waiting - it is never removed from the waitlist
until it has the lock.

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent e4b7254c
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