Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2100641imu; Wed, 12 Dec 2018 09:29:00 -0800 (PST) X-Google-Smtp-Source: AFSGD/W5FJDN+wZXk2hKOHXMGB4CYKqgtop+yqbJk7XodnPvfOk8QjSaogQvZWcEsW0XriDR/VXf X-Received: by 2002:a63:d40a:: with SMTP id a10mr18630498pgh.394.1544635740363; Wed, 12 Dec 2018 09:29:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544635740; cv=none; d=google.com; s=arc-20160816; b=GfGLo0JXl/eueXBKNAKzL/C24uNXnyijsbn3o1lU977VHQkQcZ101oU1yYPlUADysr Z6HM8Pa6ZItMNdcQ7/kM+Y0Ceg5HFPx72xkQet4BGE8hgybnfu4BW7qDrLnTzjOFBcPM A52SgC2YrzF5jflhsuXnxTXbqkKw33+NcrViti+zs+TwfNOaXRfCxV3CS6AEzXLjoKD3 ar0xu7NS8vw8xzetOk8WMM42u1qQFgjGcxPMKVxOd1YfHh6NQBCwKG+oohN13IS/Mcxy YkGp0TQCUg/+8BO4c1s5pNoz0eZQkIR1XitJ+IpWiM8m21I+m5Fefu8fH72//wSdq5cy ZmTg== 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=jblnCvnC6IP3Awz0pCdwKzWKbwkJjKaSbmzitAkbDcQ=; b=ObH7oJIey934z/zIv1R1Wnh7huLpkFl/9Zl6PfQvW/KNZJWqlgtOUjwhro93wgYjsa icj9lxJ7ZjhCJ0/EcHpOtmuNdRryPcBV2wVYP6wc/n5N3r1WwGP+YxDlhuIkqVrqwn0g Wgl6cBwV85gEcWXcVxjkviCJLrkQbfproUVN7X2QTXEcEovPSs8xfSFLqO2ITWzA65mG iD7/Xdll8xYeM69u3BBiAOm+Qh5NCwEWTzZYAYNFt/Z8ssct8Zb0aAJHzORzMzIzp9vV x31ljERlvrDDsaHhv5RFh9Nw1+VjoRBCOVPDEZSp5cjmTzkZD31Kb4o26QNoOGPTBpaP oELQ== 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 23si16211948pfz.20.2018.12.12.09.28.45; Wed, 12 Dec 2018 09:29:00 -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 S1728059AbeLLR1V (ORCPT + 99 others); Wed, 12 Dec 2018 12:27:21 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:50930 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727799AbeLLR1U (ORCPT ); Wed, 12 Dec 2018 12:27:20 -0500 Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id wBCHJeOF037109 for ; Wed, 12 Dec 2018 12:27:19 -0500 Received: from e06smtp02.uk.ibm.com (e06smtp02.uk.ibm.com [195.75.94.98]) by mx0a-001b2d01.pphosted.com with ESMTP id 2pb4mmefsg-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 12 Dec 2018 12:27:19 -0500 Received: from localhost by e06smtp02.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 12 Dec 2018 17:27:16 -0000 Received: from b06cxnps4076.portsmouth.uk.ibm.com (9.149.109.198) by e06smtp02.uk.ibm.com (192.168.101.132) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Wed, 12 Dec 2018 17:27:13 -0000 Received: from d06av24.portsmouth.uk.ibm.com (mk.ibm.com [9.149.105.60]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id wBCHRCiA8061294 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 12 Dec 2018 17:27:12 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 96FD742047; Wed, 12 Dec 2018 17:27:12 +0000 (GMT) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4E02742045; Wed, 12 Dec 2018 17:27:12 +0000 (GMT) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.152.85.9]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Wed, 12 Dec 2018 17:27: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 v2 0/1] Initialize struct pages for the full section Date: Wed, 12 Dec 2018 18:27:11 +0100 X-Mailer: git-send-email 2.16.4 X-TM-AS-GCONF: 00 x-cbid: 18121217-0008-0000-0000-000002A0670A X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18121217-0009-0000-0000-0000220AE4DA Message-Id: <20181212172712.34019-1-zaslonko@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-12-12_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=644 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1812120149 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 | 12 ++++++++++++ 1 file changed, 12 insertions(+) -- 2.16.4