From: Tejun Heo Date: Wed, 8 Oct 2014 16:01:52 +0000 (-0400) Subject: percpu: fix how @gfp is interpreted by the percpu allocator X-Git-Tag: fixes-against-v3.18-rc2~134^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ae833c7fe0c6ef1f0ab13cc775da230d6f4c256;p=pandora-kernel.git percpu: fix how @gfp is interpreted by the percpu allocator When @gfp is specified, the percpu allocator is interested in whether it contains all of GFP_KERNEL or not. If it does, the normal allocation path is taken; otherwise, the atomic allocation path. Unfortunately, pcpu_alloc() was incorrectly testing for whether @gfp contains any part of GFP_KERNEL. Fix it by testing "(gfp & GFP_KERNEL) != GFP_KERNEL" instead of "!(gfp & GFP_KERNEL)" to decide whether the allocation should be atomic or not. Signed-off-by: Tejun Heo --- Reading git-diff-tree failed