Received: by 2002:ac0:b08d:0:0:0:0:0 with SMTP id l13csp4570978imc; Mon, 25 Feb 2019 07:14:12 -0800 (PST) X-Google-Smtp-Source: AHgI3IaRlVsY3q96eDaMjX5MiRHxoe08l81x1K/Mme/LvRMnuHiMSIJcFkgvvPnx9HLwVODlwp0r X-Received: by 2002:a63:cd02:: with SMTP id i2mr7809661pgg.111.1551107652460; Mon, 25 Feb 2019 07:14:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551107652; cv=none; d=google.com; s=arc-20160816; b=p+34qpOliJhN1kt1Y8FEl5NsbV1PqrbPzwyJuZJuT6GkFfMsv+8GWW3BpoWzfMUBK7 KnadxcHxXMgUK2QN1fg8PIcSQI5jNTocws8A7/qc5xrDpR5t0a8MCA9nCMJ8yst2NIsA pyEgR44cGd3pKz3Jnwc3q86ZQR/3xEGtAqOcgJy/dsVlATa1nUoUacCScIeUOTAsspZm SHudTx8ycs3+3+f3ajPrigqva5JLBS0ywfV+YnSUPmvQKNb3d6JBw8tD4/7rY20ukQFy UhTYgqssuVDG6n8Kf2l1AS06f/+rOmOG/2M4y49fZFO6rIy1aiS2smXp6gcqezn+VivX WBqg== 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; bh=mLOpBX/5F2G/oYRLBjL46VTONps8ne40eaQPtNsdmSA=; b=wooBwhfxoqeyOAqUcsfikw5OPUZmiYAQe7ZTiGWpoDD5GBD2IFUwhGM1V1evzm9u3n Wn/zBVzkBXwu3wVmCoXD0gilvO/bfVoihXGADe+54B94Rslh5o27Ee/dfE2Yl43xH+u1 jYSeoaQtykAR3ojVFxLD9CiT7b+s1OsWKWM30uy/Rcwe/ehdma4c43JJhsoiZVhJtkIC W8ZLEnCdFyHQHojsZQOmKIVZGmrO09EOsatS5r9ZXartgVpKHlfIKzU3pl14NQv1HOvN KX16eoUi28wBHc8GivwonA0yd+ShRx4cMBNX4g4ZiQDUcEl079RHUoPWGZ4i9hOh2viX MVag== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ct15si11208342plb.333.2019.02.25.07.13.56; Mon, 25 Feb 2019 07:14:12 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727617AbfBYPNf (ORCPT + 99 others); Mon, 25 Feb 2019 10:13:35 -0500 Received: from mail-yb1-f193.google.com ([209.85.219.193]:44267 "EHLO mail-yb1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727589AbfBYPNe (ORCPT ); Mon, 25 Feb 2019 10:13:34 -0500 Received: by mail-yb1-f193.google.com with SMTP id c3so1550171ybo.11 for ; Mon, 25 Feb 2019 07:13:33 -0800 (PST) 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=mLOpBX/5F2G/oYRLBjL46VTONps8ne40eaQPtNsdmSA=; b=cR3IzGgOEBkAEcKo+/En8Pk9gWVlz9p3DNZDWTalgUqQBIXHudd8GE66XnI6/3jdE8 Z+dcFCYhOLYiIYN17NSIP1osOnWM1pNZY8Ym1IPo1Rpjp+y2Uo4jAjRWchTgAU/htfKY CYlLGlFCtI1BOI3ObyYcOeVRZ7NPF2W6rlb5PwC/tRvKwHrr2OP1r9ITnFQK3AglYwz4 M9U+L+vpZFb1SO2KL5fNH5VolKRGbzdYwvRZ/DPG+kisKghMg70rjlhp5A9QDrQOkqxJ CKsXLk56OKIIUIs5hyYiBEwEhmwcLHP07zPIwrxurxD00ms/FFiFrW5LCvtof+mQySJc rsxQ== X-Gm-Message-State: AHQUAuZmo6N/keKCOke2gn1WeWD9l6fZ6Y6Tkj3iC/oTlnKZB2Bd66JJ 709JEBKIAwPA3HFxPv8OjUc= X-Received: by 2002:a25:2044:: with SMTP id g65mr14459634ybg.406.1551107613278; Mon, 25 Feb 2019 07:13:33 -0800 (PST) Received: from dennisz-mbp.dhcp.thefacebook.com ([2620:10d:c091:200::1:8bb9]) by smtp.gmail.com with ESMTPSA id g39sm3766859ywk.50.2019.02.25.07.13.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 Feb 2019 07:13:32 -0800 (PST) Date: Mon, 25 Feb 2019 10:13:30 -0500 From: Dennis Zhou To: Peng Fan Cc: "dennis@kernel.org" , "tj@kernel.org" , "cl@linux.com" , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , "van.freenix@gmail.com" Subject: Re: [PATCH 1/2] percpu: km: remove SMP check Message-ID: <20190225151330.GA49611@dennisz-mbp.dhcp.thefacebook.com> References: <20190224132518.20586-1-peng.fan@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190224132518.20586-1-peng.fan@nxp.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Feb 24, 2019 at 01:13:43PM +0000, Peng Fan wrote: > percpu-km could only be selected by NEED_PER_CPU_KM which > depends on !SMP, so CONFIG_SMP will be false when choose percpu-km. > > Signed-off-by: Peng Fan > --- > mm/percpu-km.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/mm/percpu-km.c b/mm/percpu-km.c > index 0f643dc2dc65..66e5598be876 100644 > --- a/mm/percpu-km.c > +++ b/mm/percpu-km.c > @@ -27,7 +27,7 @@ > * chunk size is not aligned. percpu-km code will whine about it. > */ > > -#if defined(CONFIG_SMP) && defined(CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK) > +#if defined(CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK) > #error "contiguous percpu allocation is incompatible with paged first chunk" > #endif > > -- > 2.16.4 > Hi, I think keeping CONFIG_SMP makes this easier to remember dependencies rather than having to dig into the config. So this is a NACK from me. Thanks, Dennis