From: Jerome Marchand Date: Wed, 5 Jan 2011 15:57:37 +0000 (+0100) Subject: kref: add kref_test_and_get X-Git-Tag: v2.6.38-rc1~231^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4a683c899cd5a49f8d684a054c95bd115a0c005;p=pandora-kernel.git kref: add kref_test_and_get Add kref_test_and_get() function, which atomically add a reference only if refcount is not zero. This prevent to add a reference to an object that is already being removed. Signed-off-by: Jerome Marchand Cc: stable@kernel.org Signed-off-by: Jens Axboe --- Reading git-diff-tree failed