git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a6e8dc4
)
kref: add kref_test_and_get
author
Jerome Marchand
<jmarchan@redhat.com>
Wed, 5 Jan 2011 15:57:37 +0000
(16:57 +0100)
committer
Jens Axboe
<jaxboe@fusionio.com>
Wed, 5 Jan 2011 15:57:37 +0000
(16:57 +0100)
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>
No differences found