From: Eric Dumazet Date: Mon, 30 Jan 2006 05:19:35 +0000 (+0100) Subject: [PATCH] kref: avoid an atomic operation in kref_put() X-Git-Tag: v2.6.17-rc1~1177^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b5536bbee53620f8d5f367987e5727ba36d886d;p=pandora-kernel.git [PATCH] kref: avoid an atomic operation in kref_put() 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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed