From: Tejun Heo Date: Sat, 28 Jun 2014 12:10:12 +0000 (-0400) Subject: percpu-refcount, aio: use percpu_ref_cancel_init() in ioctx_alloc() X-Git-Tag: omap-for-v3.17/fixes-against-rc2~191^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=55c6c814ae0aa896781d3c51e4608de542624f64;p=pandora-kernel.git percpu-refcount, aio: use percpu_ref_cancel_init() in ioctx_alloc() ioctx_alloc() reaches inside percpu_ref and directly frees ->pcpu_count in its failure path, which is quite gross. percpu_ref has been providing a proper interface to do this, percpu_ref_cancel_init(), for quite some time now. Let's use that instead. This patch doesn't introduce any behavior changes. Signed-off-by: Tejun Heo Acked-by: Benjamin LaHaise Cc: Kent Overstreet --- Reading git-diff-tree failed