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:
6ce4eac
)
percpu-refcount: Add a WARN() for ref going negative
author
Kent Overstreet
<kmo@daterainc.com>
Mon, 6 Jan 2014 21:13:26 +0000
(13:13 -0800)
committer
Tejun Heo
<tj@kernel.org>
Tue, 21 Jan 2014 09:40:56 +0000
(
04:40
-0500)
AIO had a missing get, which led to an ioctx leak - after percpu_ref_kill() the
ref was 0 so percpu_ref_put() never saw it hit 0.
This wasn't noticed at the time because it all happened completely silently,
this adds a WARN() which would've caught the aio bug.
tj: Used WARN_ONCE() instead of WARN().
Signed-off-by: Kent Overstreet <kmo@daterainc.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
lib/percpu-refcount.c
patch
|
blob
|
history
diff --cc
lib/percpu-refcount.c
Simple merge