percpu-refcount: Don't use silly cmpxchg()
authorKent Overstreet <koverstreet@google.com>
Mon, 3 Jun 2013 23:02:29 +0000 (16:02 -0700)
committerTejun Heo <tj@kernel.org>
Mon, 3 Jun 2013 23:04:04 +0000 (16:04 -0700)
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: Kent Overstreet <koverstreet@google.com>
Signed-off-by: Tejun Heo <tj@kernel.org>

No differences found