Commit 91db8066 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

six locks: Improved optimistic spinning



This adds a threshold for the maximum spin time, similar to the rwsem
code, and a flag to the lock itself indicating when we've spun too long
so other threads also refrain from spinning.

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