From patchwork Mon Dec 10 13:07:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zaslonko Mikhail X-Patchwork-Id: 10721271 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 211A613BF for ; Mon, 10 Dec 2018 13:07:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0799729BC8 for ; Mon, 10 Dec 2018 13:07:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ECE5329BF9; Mon, 10 Dec 2018 13:07:23 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7B97829BC8 for ; Mon, 10 Dec 2018 13:07:23 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7818C8E0012; Mon, 10 Dec 2018 08:07:22 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 730458E0001; Mon, 10 Dec 2018 08:07:22 -0500 (EST) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5F8C08E0012; Mon, 10 Dec 2018 08:07:22 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) by kanga.kvack.org (Postfix) with ESMTP id 07B0C8E0001 for ; Mon, 10 Dec 2018 08:07:22 -0500 (EST) Received: by mail-ed1-f69.google.com with SMTP id i14so5230866edf.17 for ; Mon, 10 Dec 2018 05:07:21 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-original-authentication-results:x-gm-message-state:from:to:cc :subject:date:message-id; bh=IxAL2aVs/s5VtA8Y3RkkAA4zQH/jGoadZH1QRPfOmI8=; b=HU99dGRJBRGKVNTtYr0tTqdg92dKbTTURxkYo1w31cq5z7NAwqOCkVcOLHAtg0NXBE TPopSA8jylzYQGaLYVCk8FA9iEYNY3UmcvKimLUhIiI0R24JAxmKRGEAijRX83NtSZ9/ 8Val2ec0if9jKSY+KHtxEOohDHb/zvcrvn0OfprNqw3W7Ea5y2so8z0BT4i6Nfl5n+pJ GhlAAwoNLm3eWsLBejqmook8ii613ueD/2MZxu9mLKuvTFm5j2c4PubzbUy8HlIQeomV +ta1PW9AY2Qs25vAEEMjmv9s6O5wycwphR7aFg/8w2pTJngql9OCnRkjnns/9NjsPXFV bCfA== X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of zaslonko@linux.ibm.com designates 148.163.158.5 as permitted sender) smtp.mailfrom=zaslonko@linux.ibm.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com X-Gm-Message-State: AA+aEWbvPio8jBqTcLXNKfDn8le+OwkXUUZYHSvuQeCBOSsHTcm85thc ULfbj3FNF4wgUS7VEwL39aN2QX+Xg3HD9e3fsgenykV09DzZ3L3xqxj8uiaVy2GUzLfecpOD4zz X4jNsFWBbzx7mzqDoG4JrpvyncDCt7FUyQmyugecofy0Oz+iI8164jNiUeLBSo4fyKw== X-Received: by 2002:a50:9724:: with SMTP id c33mr11453336edb.288.1544447241573; Mon, 10 Dec 2018 05:07:21 -0800 (PST) X-Google-Smtp-Source: AFSGD/U+3gYBhmqWnIe6rTuqn+hxhrkuFrYS7ehj7QBshnbadUl8w0L6E3Xl544rCF9q6bMtZCTn X-Received: by 2002:a50:9724:: with SMTP id c33mr11453296edb.288.1544447240720; Mon, 10 Dec 2018 05:07:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544447240; cv=none; d=google.com; s=arc-20160816; b=lsTn76y18gZptm+9VVf7aPP4d0mA5s8zU7i0cj2qYc8tGCZJ+OPb40kuckY/RBoFKd lFlNnMdSabbXPdRzd/ygKqZZeJueZP/pSjZOYbGmFA9Y9Cq7KbtF+3HRq3wma1KaX4z/ MJf+rgv7fOxSDTLQnbMpVf/bhA1Huv+XCnVLmxeYhXm7JF2ZB2VBYDxbZ+q4SmVwdnCK IvtudyAse/LQbXl7cLvZLocanKDbfqjyXCFQOgAzYzPYh3kpkIXHKZs40Rg1VVvOq3aj dogAePHgMmkiDmstbD6b24b680+v9pNZooeOwwkG3cqv0q3Dp6ybqatoUANsj8nGPYcB mTLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from; bh=IxAL2aVs/s5VtA8Y3RkkAA4zQH/jGoadZH1QRPfOmI8=; b=lutj3e5KIWIZSxkmHc+mu7kroiiDsslGLvlZf7lq4bj/NqI+5bq8Nv8V0yVfP1nGsF G2IIkDkgZMqKqen+Dsi+rpnvUPwedbftNC9mb61JFIhmB2K7doE9zyPfol6GEzZuOJdN zY/E6dl9IqCV3AxwdGhZnHtR8b2/ha/VKuZf0wtu26ymFpylYqgL7L/lYs7ALYNJ97Zy Ob7FLhfDVAbhro9ze0z13kX1zc1F9SiwHqoBxyvAlJhk8Npe+KOHydjOzl9V7SuFEuD8 P+XpA8/OqZrVEFs0G9wTbBPxj9ApOt0qEmgmJNa9BNsCpjndWqpB/yG8fb+aL9C5LFBm 7A2Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of zaslonko@linux.ibm.com designates 148.163.158.5 as permitted sender) smtp.mailfrom=zaslonko@linux.ibm.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com. [148.163.158.5]) by mx.google.com with ESMTPS id u18si2952034edl.65.2018.12.10.05.07.20 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Dec 2018 05:07:20 -0800 (PST) Received-SPF: pass (google.com: domain of zaslonko@linux.ibm.com designates 148.163.158.5 as permitted sender) client-ip=148.163.158.5; Authentication-Results: mx.google.com; spf=pass (google.com: domain of zaslonko@linux.ibm.com designates 148.163.158.5 as permitted sender) smtp.mailfrom=zaslonko@linux.ibm.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com 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 wBAD5LYH045631 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 2p9ndt9se0-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 10 Dec 2018 08:07:18 -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=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=665 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1812100120 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: X-Virus-Scanned: ClamAV using ClamSMTP 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(+)