lkml.org 
[lkml]   [2012]   [Apr]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] debugobjects: Use GFP_ATOMIC to allocate when initializing
From
On Mon, Apr 2, 2012 at 9:35 PM, Peter Zijlstra <peterz@infradead.org> wrote:
> Something like so?
>
> ---
>  kernel/lockdep.c |    7 +++++++
>  1 files changed, 7 insertions(+), 0 deletions(-)
>
> diff --git a/kernel/lockdep.c b/kernel/lockdep.c
> index ea9ee45..a028ba9 100644
> --- a/kernel/lockdep.c
> +++ b/kernel/lockdep.c
> @@ -2718,6 +2718,13 @@ static void __lockdep_trace_alloc(gfp_t gfp_mask, unsigned long flags)
>  {
>        struct task_struct *curr = current;
>
> +       /*
> +        * We do GFP_KERNEL allocations with IRQs disabled during system
> +        * bringup..
> +        */
> +       if (unlikely(system_state != SYSTEM_RUNNING))
> +               return;
> +
>        if (unlikely(!debug_locks))
>                return;

Yes, please.

Acked-by: Pekka Enberg <penberg@kernel.org>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2012-04-02 20:41    [W:0.055 / U:20.396 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site