Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755023AbbLDCht (ORCPT ); Thu, 3 Dec 2015 21:37:49 -0500 Received: from smtprelay0166.hostedemail.com ([216.40.44.166]:38649 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754801AbbLDChs (ORCPT ); Thu, 3 Dec 2015 21:37:48 -0500 X-Session-Marker: 726F737465647440676F6F646D69732E6F7267 X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,rostedt@goodmis.org,:::::::::::::,RULES_HIT:41:355:379:541:599:800:960:968:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1538:1593:1594:1711:1714:1730:1747:1777:1792:2393:2553:2559:2562:2693:3138:3139:3140:3141:3142:3165:3350:3622:3865:3866:3867:3870:3871:3872:3874:4470:5007:6120:6261:7875:7901:10004:10400:10848:10967:11232:11658:11914:12114:12517:12519:12740:13069:13311:13357:14659:21080:30012:30054:30070:30090:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:3,LUA_SUMMARY:none X-HE-Tag: cord71_60f89187f600f X-Filterd-Recvd-Size: 1553 Date: Thu, 3 Dec 2015 21:37:45 -0500 From: Steven Rostedt To: Rusty Russell Cc: LKML , Ingo Molnar , Peter Zijlstra , Andrew Morton , Sergey Senozhatsky , Xunlei Pang Subject: Re: [RFC][PATCH] Add __GFP_ZERO to alloc_cpumask_var_node() if ptr is zero Message-ID: <20151203213745.52f21886@gandalf.local.home> In-Reply-To: <87lh9b573j.fsf@rustcorp.com.au> References: <20151203172428.600f380a@gandalf.local.home> <87lh9b573j.fsf@rustcorp.com.au> X-Mailer: Claws Mail 3.13.0 (GTK+ 2.24.28; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 741 Lines: 21 On Fri, 04 Dec 2015 12:05:12 +1030 Rusty Russell 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/