Commit 2d9200cf authored by Kent Overstreet's avatar Kent Overstreet
Browse files

six locks: Use atomic_try_cmpxchg_acquire()



This switches to a newer cmpxchg variant which updates @old for us on
failure, simplifying the cmpxchg loops a bit and supposedly generating
better code.

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