aboutsummaryrefslogtreecommitdiffstats
path: root/net/dccp/proto.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2014-10-08 12:01:52 -0400
committerTejun Heo <tj@kernel.org>2014-10-08 12:01:52 -0400
commit6ae833c7fe0c6ef1f0ab13cc775da230d6f4c256 (patch)
tree23fc4c7e1ef8a8d97fa039e0da7162c48d08bae7 /net/dccp/proto.c
parentblk-mq, percpu_ref: start q->mq_usage_counter in atomic mode (diff)
downloadlinux-dev-6ae833c7fe0c6ef1f0ab13cc775da230d6f4c256.tar.xz
linux-dev-6ae833c7fe0c6ef1f0ab13cc775da230d6f4c256.zip
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 <tj@kernel.org>
Diffstat (limited to 'net/dccp/proto.c')
0 files changed, 0 insertions, 0 deletions