Received: by 10.223.185.116 with SMTP id b49csp807550wrg; Fri, 16 Feb 2018 07:30:46 -0800 (PST) X-Google-Smtp-Source: AH8x226uCIfurgKcZdRE2rFnyrZ3YVYodigf9dNHgSimCaQpQVMwcNltuE1u4Z00JrzYn0fzApkp X-Received: by 10.98.29.211 with SMTP id d202mr4753198pfd.51.1518795046045; Fri, 16 Feb 2018 07:30:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518795046; cv=none; d=google.com; s=arc-20160816; b=IpV3xxv10wAlpkPB0weNHhkI1FwOHNj9ZjaetN+brhDlDz0WYj1N1GCnMpv0hIAKTc 7M8JrWAOu3pciAAhnkPqeKUWLItHoWjm94nr2ldXtK9At+R42EbRtxQsxPYTIx89fN6E rjwe4MX5U1kIrqQODGDQAp/i94H5RA3Hgv7uBANoTY/cr4CI82hchIx83hNGeroYq0wD sfh1I2fejZw2WnLPZi8idqNhIbkJeMS1tthUVV5iiol2UUM6zhRq6ap3poWnsdOhNlib BQqGuP0NJMqIpY9yyM/1FDwWayzxJM50TmruG4DzQAqq3LqtqdZK1LyY4cG3/yrahqcy VfPQ== 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=fXgtoUxpTUZGIDNHm6Yimy7A/RgztM0VWl9SZ2VzC+o=; b=uFaVm0diH4ykTKSi7o0Szwygr0U/ZqKG4vL7FMwB+394yiE51/Dy+jFaLbSOtj9NRS l1/4zZ0T5WrpCSTbPx1Jw5DZY8kJG2CpSENupnlA9bmyq3fNxIdSVgnhBLQ3P7oND49b IIP7Fl6YQvWmssoZv1lasp3KlhFNDvs2Odso/EMdUpptEtNtVBSKLbLZPfs3ENWNTYy7 qwtcdZIUTQWK8wPmoC6xLeR30QpmDcnEbGhuqmHOWUcUJMNTmgVyC20dfBhl3auAED5i FDUmEJZ1usOppOer8EJoB1dsW+oFgb8wFOjfftVAUQEAa0nrhbx8psLmUVNxoztV6P7n Qngg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=aXyvdPjE; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 68si1710995pfl.228.2018.02.16.07.30.30; Fri, 16 Feb 2018 07:30:46 -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=fail header.i=@gmail.com header.s=20161025 header.b=aXyvdPjE; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1163951AbeBOVlx (ORCPT + 99 others); Thu, 15 Feb 2018 16:41:53 -0500 Received: from mail-qt0-f169.google.com ([209.85.216.169]:46597 "EHLO mail-qt0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1163784AbeBOVlw (ORCPT ); Thu, 15 Feb 2018 16:41:52 -0500 Received: by mail-qt0-f169.google.com with SMTP id u6so1492234qtg.13 for ; Thu, 15 Feb 2018 13:41:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=fXgtoUxpTUZGIDNHm6Yimy7A/RgztM0VWl9SZ2VzC+o=; b=aXyvdPjE58+ETyOhHzPlBwIJbFglqfzwwykdSs8LMa9vuChQvlaStz67SezreC8wyr SeO/uLZBU2Bj18zPIh1JRj0xNnO6NqdzkSr/FnoXBSaJqOAqEO4AtxakqRSNHyPh+4Er FrkmFdUdOCPRxWcC5q2RYnHF6VfGwu1ThF3h/5hGLs8YGNxpPuEpHTgc5PCL7PcOHB8o wyLuEp+1Lt3H8uUnh8Z67o6F3FjgRIOwFx0x1IWEzpJCQZwps6tvn8dYuRCE7V8R4Kwg 9t3ClS7HkPLzZiUr5Qu5FHAsMCkhAtcPH38QysgWT/d2gd6c4xF3UvUc0NDk+IC5gtLD 4xDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=fXgtoUxpTUZGIDNHm6Yimy7A/RgztM0VWl9SZ2VzC+o=; b=LqIncWIBb2jcJ8vXMzUtUvzvPzubHhW+++ctobvY+5078SNcdBw3XBJJJLVWqCViGi mEXa1PscmF1L+3uPvw49bZjyeiYwTHFtYeq2ij/dhz1/7JPaJ5AjQl2KR9xGeGNi6Rzn PA/epBT1/UjN/XjSP6oLLLrPKgWvXHeTxQ/BRWCnqSYOIN+qkgP5qkRXDgRz7Sg9OVgr QLpHgEHPLVm8/oj5L17vTlg+SWWVorN0ciHs1MWsVjX6STOkNCvfsLd+RGWpee2cC/Nz 9UpRaAWPQoe45Pu4lR3w8ZZec4vs/ShR7QlR8JdD+QAl0wpSMnbWWWpdm29quJUth0/N a4gA== X-Gm-Message-State: APf1xPBpE1HiCMQFMmTmgTTyqYf9yq+7hTq4H0VK6T7QbWNNy8yHLUo7 4GTpbIausECA1iOzEQeX6/5Y6HxE X-Received: by 10.200.61.146 with SMTP id v18mr6752090qtf.28.1518730911368; Thu, 15 Feb 2018 13:41:51 -0800 (PST) Received: from localhost (dhcp-ec-8-6b-ed-7a-cf.cpe.echoes.net. [72.28.5.223]) by smtp.gmail.com with ESMTPSA id q10sm12428266qtk.93.2018.02.15.13.41.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Feb 2018 13:41:50 -0800 (PST) Date: Thu, 15 Feb 2018 13:41:48 -0800 From: Tejun Heo To: Dennis Zhou 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: <20180215214148.GV695913@devbig577.frc2.facebook.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, 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? Thanks. -- tejun