From patchwork Mon May 23 16:54:31 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Shi X-Patchwork-Id: 68399 Delivered-To: patch@linaro.org Received: by 10.140.92.199 with SMTP id b65csp203247qge; Mon, 23 May 2016 10:22:08 -0700 (PDT) X-Received: by 10.98.89.213 with SMTP id k82mr6630407pfj.99.1464024113210; Mon, 23 May 2016 10:21:53 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j9si53126080paf.186.2016.05.23.10.21.52; Mon, 23 May 2016 10:21:53 -0700 (PDT) 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=@linaro.org; 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 dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753302AbcEWRVt (ORCPT + 30 others); Mon, 23 May 2016 13:21:49 -0400 Received: from mail-pa0-f49.google.com ([209.85.220.49]:34451 "EHLO mail-pa0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753199AbcEWRVs (ORCPT ); Mon, 23 May 2016 13:21:48 -0400 Received: by mail-pa0-f49.google.com with SMTP id qo8so64808070pab.1 for ; Mon, 23 May 2016 10:21:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=a+7i6X2Q3t3UnHlTHIRy2MK26E+QnTW3eDH/MH0sQBE=; b=aWyWABUWp7xmFruo1GDPgZjtl1eWe1nbIEQB65/bSt/mIoBtncPLkOakKKNj3pKU2W X15eurw7v7Knvcaiq08J133CaNDSmr7q6EpHU55weyySxMKKrknOqAPRLb5P8KjzNDtZ cfjzZYoXV40YmK96gWPpSLj9yC80jwhiCQv1s= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=a+7i6X2Q3t3UnHlTHIRy2MK26E+QnTW3eDH/MH0sQBE=; b=JVEYEOnMoFOBFkMAYZGfTRvAHWY2TCx+DFcmOY1xdIa3keUtyCkZne005gll3GMqfK fRoCu49QuM1RAM+HetKXFrT134ci2SpxKskRgyO/cwAUb3TCecpDRPH1yZVHtCNGw0HU wjtvHqDoXXfQ0aB2IhzKQ/o66ErKtJA8K/taopGmvrubw4Z3uq6NpGtXnJf3azaJyazN 6VC9op6hK/BaM0N5BD5oDuV16o6vuG81f2lMrfefB+mcj9yn+8J7Bk5kGoyf+k5oMjG0 nWrZ7KI57HEr3ye6J8+TUub+eSucNto1G5GOOncWg7n/FVFUNoY6x93x5jn1jn+3gE8u mNMQ== X-Gm-Message-State: AOPr4FWFDpUBi8SKut8ILJFfFPrZz2MDDJmEfbb1UBpSEhURXQs/hKwdXxugCMJ5olliG3h4 X-Received: by 10.66.6.35 with SMTP id x3mr29014530pax.135.1464024106706; Mon, 23 May 2016 10:21:46 -0700 (PDT) Received: from yshi-Precision-T5600.corp.ad.wrs.com (unknown-216-82.windriver.com. [147.11.216.82]) by smtp.gmail.com with ESMTPSA id j65sm17888094pfj.44.2016.05.23.10.21.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 May 2016 10:21:45 -0700 (PDT) From: Yang Shi To: akpm@linux-foundation.org, mhocko@kernel.org Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, linaro-kernel@lists.linaro.org, yang.shi@linaro.org Subject: [PATCH] mm: make CONFIG_DEFERRED_STRUCT_PAGE_INIT depends on !FLATMEM explicitly Date: Mon, 23 May 2016 09:54:31 -0700 Message-Id: <1464022471-30545-1-git-send-email-yang.shi@linaro.org> X-Mailer: git-send-email 2.0.2 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Per the suggestion from Michal Hocko [1], CONFIG_DEFERRED_STRUCT_PAGE_INIT should be incompatible with FLATMEM, make this explicitly in Kconfig. [1] http://lkml.kernel.org/r/20160523073157.GD2278@dhcp22.suse.cz Signed-off-by: Yang Shi --- mm/Kconfig | 1 + 1 file changed, 1 insertion(+) -- 2.0.2 diff --git a/mm/Kconfig b/mm/Kconfig index 2664c11..22fa818 100644 --- a/mm/Kconfig +++ b/mm/Kconfig @@ -649,6 +649,7 @@ config DEFERRED_STRUCT_PAGE_INIT default n depends on ARCH_SUPPORTS_DEFERRED_STRUCT_PAGE_INIT depends on MEMORY_HOTPLUG + depends on !FLATMEM help Ordinarily all struct pages are initialised during early boot in a single thread. On very large machines this can take a considerable