Skip to content
Commit c1ae6e9b authored by Kent Overstreet's avatar Kent Overstreet Committed by Tejun Heo
Browse files

percpu-refcount: Don't use silly cmpxchg()



The cmpxchg() was just to ensure the debug check didn't race, which was
a bit excessive. The caller is supposed to do the appropriate
synchronization, which means percpu_ref_kill() can just do a simple
store.

Signed-off-by: default avatarKent Overstreet <koverstreet@google.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent 215e262f
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