[PATCH] kref: avoid an atomic operation in kref_put()
authorEric Dumazet <dada1@cosmosbay.com>
Mon, 30 Jan 2006 05:19:35 +0000 (06:19 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 20 Mar 2006 21:42:57 +0000 (13:42 -0800)
Avoid an atomic operation in kref_put() when the last reference is
dropped. On most platforms, atomic_read() is a plan read of the counter
and involves no atomic at all.

Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

No differences found