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

six locks: Simplify wait lists



This switches to a single list of waiters, instead of separate lists for
read and intent, and switches write locks to also use the wait lists
instead of being handled differently.

Also, removal from the wait list is now done by the process waiting on
the lock, not the process doing the wakeup. This is needed for the new
deadlock cycle detector - we need tasks to stay on the waitlist until
they've successfully acquired the lock.

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