From: Kent Overstreet Date: Mon, 6 Jan 2014 21:13:26 +0000 (-0800) Subject: percpu-refcount: Add a WARN() for ref going negative X-Git-Tag: v3.14-rc1~137^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=687b0ad2751ca8ea418396fa780e22571fba76a8;p=pandora-kernel.git percpu-refcount: Add a WARN() for ref going negative 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 Signed-off-by: Tejun Heo --- Reading git-diff-tree failed