From: Tejun Heo Date: Fri, 14 Aug 2009 06:00:49 +0000 (+0900) Subject: percpu: fix pcpu_reclaim() locking X-Git-Tag: v2.6.32-rc1~676^2^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=971f3918a5a8febbbab355079972fb31ee7c0f33;p=pandora-kernel.git percpu: fix pcpu_reclaim() locking pcpu_reclaim() calls pcpu_depopulate_chunk() which makes use of pages array and bitmap returned by pcpu_get_pages_and_bitmap() and thus should be called under pcpu_alloc_mutex. pcpu_reclaim() released the mutex before calling depopulate leading to double free and other strange problems caused by the unexpected concurrent usages of pages array and bitmap. Fix it. Signed-off-by: Tejun Heo Reviewed-by: Christoph Lameter --- Reading git-diff-tree failed