Files
kernel-tenderloin-3.0/include
Jerome Marchand e4a683c899 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 <jmarchan@redhat.com>
Cc: stable@kernel.org
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
2011-01-05 16:57:37 +01:00
..
2010-10-26 14:51:00 -04:00
2011-01-05 16:57:37 +01:00
2010-10-25 10:20:39 -07:00