Received: by 10.223.185.116 with SMTP id b49csp986928wrg; Fri, 16 Feb 2018 10:20:56 -0800 (PST) X-Google-Smtp-Source: AH8x2266cc2PbpRTFVTLadgRYhQ7cW8ZF6fQefeIz2ZLmqp/lm4JK+dFh91qSrJ9s130ZDsceT2j X-Received: by 10.98.60.15 with SMTP id j15mr4800884pfa.7.1518805256034; Fri, 16 Feb 2018 10:20:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518805255; cv=none; d=google.com; s=arc-20160816; b=lcejVz23f/LZPBMpuuXMzsWnzH31xdDJXDfsMSzH2mwurUWxfk2yMU+lX08tsYPCMT +ONB6pqqShzsWiYlv6D7cuegB7sjCyLHjnFYDqq/etinloq0d/EieeHOPD6AD7pFg5EC sOFSUNItL6vIR8chIMsSbyODLsPWlNN4rIuoV3NQCmtYNiGIu4+YrHJG4zHSJ9jBsvB/ h0xCQ5HtVBo4dXxQnIUCPHiuH3UfdlanyO6eYQH5nQtgDWYA3gziAIVALedoheiwjLU0 uOCvXHAYc76exiJ3e+p8ZDJyRvfeNt6hhsKF82oQayOErDOVsSZHgVwibSfQl19eNFrU hDWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=DuYgCA5iltBxeCwA2xax/1Ad58iMDa7acCkS7RRw17Y=; b=HnbFnJG8qTfmBDOn9/t74EEIUP5nFU3aEUMdIeEPscsw82EFK/dqDGL9ufzYDuKbMx /2GJaK7jX8OIblEqTeuoqC68wUj/i6TPocXNwcPP07gqUG1gR4x8Ln7mYSRwTmvHFFPj e41b3uzGNocS3jTKzPAg2YssUuIDA4PBQ3Wx+hiHspbsNHHrLGYuvPWkL/s/XKua7EV+ C+yPxTcQiV4lRLCN5cN8sFPACh3nvuVsc04iVReoZa8FVbkPWCE0JlQPnScndZaRY8ri fgIy2e5InBhuRr1h7/I2bFrdukTcrL5Lqxp5UKD7VqbfkeKY+1lyLY6Eqm9Q4ymS/aN/ YXjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=aQOi7bhd; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i2-v6si11890pll.727.2018.02.16.10.20.41; Fri, 16 Feb 2018 10:20:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=aQOi7bhd; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1164508AbeBOXRV (ORCPT + 99 others); Thu, 15 Feb 2018 18:17:21 -0500 Received: from mail-it0-f68.google.com ([209.85.214.68]:40648 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1163785AbeBOXRT (ORCPT ); Thu, 15 Feb 2018 18:17:19 -0500 Received: by mail-it0-f68.google.com with SMTP id v186so88768itc.5 for ; Thu, 15 Feb 2018 15:17:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=DuYgCA5iltBxeCwA2xax/1Ad58iMDa7acCkS7RRw17Y=; b=aQOi7bhdDCbNO0Y8vaegW5BFgKabntw7Fm7f0me8y4c6eocv9ykUzkPfru0aJNUaoG TCqr8QcrkQh0FtJJfxGjtvylU/aD3hzAUEJYlxyaqK8kWKXjJAipWLLB21Zy7FxYM7ac W+jfn9DVRvWPOWZSenEjb/jEqxl3ClM0JDHrny1BmUetCkh2GAT+OnTM/3CVlMHpcEZu gLsogBenWab5c8lC2g771NcgCH23Mx+KZdCEO81jW7H+d9qv8XHKLV57Sl9+FESGAm0d Y7/I7X0SoEzZDL2BRab+7NzGVsaaMoN34clSVknGmO+w5CsDOodZZOo4z6fQnUIY7J1y iVkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=DuYgCA5iltBxeCwA2xax/1Ad58iMDa7acCkS7RRw17Y=; b=CmbAynlS3Hjw3SswzAO+7dhPUXF8NCW0WoaRkWvNE9p0JiVvCTP2NXqiesZuPSxDGh 3rQnuF01n9jlgTCyv7GoJucuDNu0pxrU72AEFWd5erOux4aBsmIgQ3g9qwc83vxUKqdK g9Ne0sBswr3Ha3Su9cElrCSEkmACCGOOdFLf3yM2bNR/dgU8n0mBd0+et5h3viMVp7I+ moAqrEW6qTG87VedP1CoeekqwdNIOZHEWrgaWtGJOXOrXVOTBKBvsMWp3j3NJCH78aYv BtBX2MC/1xp4p1SbGl95hK3r49BFO9jbgWSAVBKlVU/rHjKbRFb9+Xwtcqf9BINbWPrQ e2Wg== X-Gm-Message-State: APf1xPCXlO/g3XyHS2UivVO5eHvJowUKUOHi7ATYIdhmpPm1Ud48f9MC Sj/e7/k6Emz8NLg+8IEfwHw= X-Received: by 10.36.13.5 with SMTP id 5mr5718004itx.68.1518736638959; Thu, 15 Feb 2018 15:17:18 -0800 (PST) Received: from localhost (172-220-001-224.dhcp.chtrptr.net. [172.220.1.224]) by smtp.gmail.com with ESMTPSA id b34sm15378989itd.38.2018.02.15.15.17.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Feb 2018 15:17:18 -0800 (PST) Date: Thu, 15 Feb 2018 17:17:14 -0600 From: Dennis Zhou To: Tejun Heo Cc: Christoph Lameter , Daniel Borkmann , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/3] percpu: allow select gfp to be passed to underlying allocators Message-ID: <20180215231714.GB79973@localhost> References: <20180215214148.GV695913@devbig577.frc2.facebook.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180215214148.GV695913@devbig577.frc2.facebook.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Thu, Feb 15, 2018 at 01:41:48PM -0800, Tejun Heo wrote: > On Thu, Feb 15, 2018 at 10:08:16AM -0600, Dennis Zhou wrote: > > +/* the whitelisted flags that can be passed to the backing allocators */ > > +#define gfp_percpu_mask(gfp) (((gfp) & (__GFP_NORETRY | __GFP_NOWARN)) | \ > > + GFP_KERNEL) > > Isn't there just one place where gfp comes in from outside? If so, > this looks like a bit of overkill. Can't we just filter there? > I agree, but it's also nice having a single place where flags can be added or removed. The primary motivator was for the "| GFP_KERNEL", but as suggested in the other patch this is getting removed. I guess I still lean towards having it as it's explicit and helps gate both the balance path and the user allocation path. Thanks, Dennis