Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3799751imu; Mon, 10 Dec 2018 08:02:47 -0800 (PST) X-Google-Smtp-Source: AFSGD/XORm/tdkvxZtRkoffkxSSBpROFDtHusvNkn3SwzOmzHU5ePJCyhV98CygWn32IPCVut4YE X-Received: by 2002:a17:902:bb86:: with SMTP id m6mr12823135pls.315.1544457767556; Mon, 10 Dec 2018 08:02:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544457767; cv=none; d=google.com; s=arc-20160816; b=TOo6OcjojTbVaNowfELLAKFsSLuQwW18WitT1XjRnh6dH0BYz/nrMtpGngMgZxfP4X wzYqal1gJLy+ryI0T1do8sracTHSTTtNJ37bqzrRs8SxiiW46u0tJZn2O50WokDAXan1 a0REoAf7xcvVYKypoPZfnfwUYpFJNB8OzsZfR2iVViBsCyexieJRsPdPKjxbITFKMtii r8FM9UL0fj6RpRq4lDW5uvAGqV6Jt9w5sAxPkLMfm1Z8CFgoAhFKNWw+4G2XqqrTAY68 jBnI5F/oe9+uArqfuz90mw5OiBl0MYDroLdHvzQ6c1FzwW7wQUcv5R5AeQsgMT7bOX9s bdJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=IxAL2aVs/s5VtA8Y3RkkAA4zQH/jGoadZH1QRPfOmI8=; b=CadWgOW+A9Ky5lcaR3rPqEV72IiEn7t0SDDF+Y3h9IGqD2ThTHKhtEVMrBxbaBxWm3 8Oj6XwKWpg6KPm6Cggw1j1zGNCATd6RvZpv3R+toiM2FzkVxruDqPEoID3EFKWs6ApET ckq4w/QQtfEvhg0fgfWkKIptgCUoMIrMjB4UjHfSEzmC1qCZVOxkivwf8dLJy5IYVQ2L 3thxHfTxU7McA/Yir01/V3mxGbII/wYdk0HuKLuquHaWkknvvcQLvQCqEUoOG6vt+77F wwnqBKpPwgSIPf4JRO7HpuTpWyuda45d43lkazmOriWtMKSM5RAbh+vui8oE+gYPHBtw Z9sQ== 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=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b24si10063283pgg.288.2018.12.10.08.02.18; Mon, 10 Dec 2018 08:02:47 -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=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726872AbeLJNHV (ORCPT + 99 others); Mon, 10 Dec 2018 08:07:21 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:55918 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726209AbeLJNHU (ORCPT ); Mon, 10 Dec 2018 08:07:20 -0500 Received: from pps.filterd (m0098420.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id wBAD5LN2045624 for ; Mon, 10 Dec 2018 08:07:19 -0500 Received: from e06smtp03.uk.ibm.com (e06smtp03.uk.ibm.com [195.75.94.99]) by mx0b-001b2d01.pphosted.com with ESMTP id 2p9ndt9sdy-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 10 Dec 2018 08:07:19 -0500 Received: from localhost by e06smtp03.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 10 Dec 2018 13:07:17 -0000 Received: from b06cxnps3074.portsmouth.uk.ibm.com (9.149.109.194) by e06smtp03.uk.ibm.com (192.168.101.133) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Mon, 10 Dec 2018 13:07:14 -0000 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id wBAD7Dwi58917044 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 10 Dec 2018 13:07:13 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 3D66311C054; Mon, 10 Dec 2018 13:07:13 +0000 (GMT) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 004F311C052; Mon, 10 Dec 2018 13:07:13 +0000 (GMT) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.152.85.9]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Mon, 10 Dec 2018 13:07:12 +0000 (GMT) From: Mikhail Zaslonko To: akpm@linux-foundation.org Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, mhocko@kernel.org, Pavel.Tatashin@microsoft.com, schwidefsky@de.ibm.com, heiko.carstens@de.ibm.com, gerald.schaefer@de.ibm.com, zaslonko@linux.ibm.com Subject: [PATCH 0/1] Initialize struct pages for the full section Date: Mon, 10 Dec 2018 14:07:11 +0100 X-Mailer: git-send-email 2.16.4 X-TM-AS-GCONF: 00 x-cbid: 18121013-0012-0000-0000-000002D70957 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18121013-0013-0000-0000-0000210C7C41 Message-Id: <20181210130712.30148-1-zaslonko@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-12-10_04:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=667 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1812100120 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch refers to the older thread: https://marc.info/?t=153658306400001&r=1&w=2 As suggested by Michal Hocko, instead of adjusting memory_hotplug paths, I have changed memmap_init_zone() to initialize struct pages beyond the zone end (if zone end is not aligned with the section boundary). Mikhail Zaslonko (1): mm, memory_hotplug: Initialize struct pages for the full memory section mm/page_alloc.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) -- 2.16.4