lkml.org 
[lkml]   [2014]   [Jan]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] x86, cpu hotplug, use cpumask stack safe variant cpumask_var_t in check_irq_vectors_for_cpu_disable()
On Fri, Jan 17, 2014 at 08:39:21AM -0500, Prarit Bhargava wrote:
[...]
> +
> + if (!alloc_cpumask_var(&online_new, GFP_KERNEL)){
> + ret = -ENOMEM;
> + goto out;
> + }
> +
> + if (!alloc_cpumask_var(&affinity_new, GFP_KERNEL)) {
> + ret = -ENOMEM;
> + goto free_online_new;
> + }
>
This function is protected by stop_machine, which means the interrupts have
been disabled, so GFP_KERNEL is not reliable.
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2014-01-20 10:41    [W:5.768 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site