Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1283558

Re: [RFC][PATCH] Add __GFP_ZERO to alloc_cpumask_var_node() if ptr is zero

From Steven Rostedt <rostedt@goodmis.org>
Newsgroups linux.kernel
Subject Re: [RFC][PATCH] Add __GFP_ZERO to alloc_cpumask_var_node() if ptr is zero
Date 2015-12-04 03:40 +0100
Message-ID <qBOrT-56k-5@gated-at.bofh.it> (permalink)
References <qBKxY-2Cl-7@gated-at.bofh.it> <qBNPb-4Dl-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Fri, 04 Dec 2015 12:05:12 +1030
Rusty Russell <rusty@rustcorp.com.au> wrote:

> This is clever, but I would advise against such subtle code.  We will
> never be able to remove this code once it is in.
> 
> Would suggest making the non-CPUMASK_OFFSTACK stubs write garbage into
> the cpumasks instead, iff !(flags & __GFP_ZERO).
> 
>
I actually thought of the same thing, but thought it was a bit harsh.
If others think that's a better solution, then I'll submit a patch to
do that.

-- Steve

--
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/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[RFC][PATCH] Add __GFP_ZERO to alloc_cpumask_var_node() if ptr is  zero Steven Rostedt <rostedt@goodmis.org> - 2015-12-03 23:30 +0100
  Re: [RFC][PATCH] Add __GFP_ZERO to alloc_cpumask_var_node() if ptr is zero Rusty Russell <rusty@rustcorp.com.au> - 2015-12-04 03:00 +0100
    Re: [RFC][PATCH] Add __GFP_ZERO to alloc_cpumask_var_node() if ptr  is zero Steven Rostedt <rostedt@goodmis.org> - 2015-12-04 03:40 +0100
      Re: [RFC][PATCH] Add __GFP_ZERO to alloc_cpumask_var_node() if ptr  is zero Ingo Molnar <mingo@kernel.org> - 2015-12-04 08:40 +0100
        Re: [RFC][PATCH] Add __GFP_ZERO to alloc_cpumask_var_node() if ptr is zero Rusty Russell <rusty@rustcorp.com.au> - 2015-12-06 03:40 +0100
          Re: [RFC][PATCH] Add __GFP_ZERO to alloc_cpumask_var_node() if ptr  is zero Ingo Molnar <mingo@kernel.org> - 2015-12-06 18:40 +0100
            Re: [RFC][PATCH] Add __GFP_ZERO to alloc_cpumask_var_node() if ptr is zero Rusty Russell <rusty@rustcorp.com.au> - 2015-12-07 04:20 +0100
              Re: [RFC][PATCH] Add __GFP_ZERO to alloc_cpumask_var_node() if ptr  is zero Ingo Molnar <mingo@kernel.org> - 2015-12-07 09:30 +0100

csiph-web