From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.9 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1B4D0C2BB85 for ; Thu, 16 Apr 2020 10:47:21 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id D212721973 for ; Thu, 16 Apr 2020 10:47:20 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="hqi+00po" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D212721973 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 7085C8E00A0; Thu, 16 Apr 2020 06:47:20 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 692DA8E0001; Thu, 16 Apr 2020 06:47:20 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 580788E00A0; Thu, 16 Apr 2020 06:47:20 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0041.hostedemail.com [216.40.44.41]) by kanga.kvack.org (Postfix) with ESMTP id 3FF488E0001 for ; Thu, 16 Apr 2020 06:47:20 -0400 (EDT) Received: from smtpin04.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id ED26E181AEF1D for ; Thu, 16 Apr 2020 10:47:19 +0000 (UTC) X-FDA: 76713391398.04.point45_5c58ca14c561 X-HE-Tag: point45_5c58ca14c561 X-Filterd-Recvd-Size: 2920 Received: from us-smtp-delivery-1.mimecast.com (us-smtp-2.mimecast.com [207.211.31.81]) by imf47.hostedemail.com (Postfix) with ESMTP for ; Thu, 16 Apr 2020 10:47:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1587034038; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=cwGR/usUMuWdkRSa5KvWDh1h/9sFb7zCuX961pIpYkU=; b=hqi+00poqFhxUiQN88WOtNVjm6upTA+RMnR0gv0Nx7FmOP03WsuebMHjZ9FCKQFoqOL+NO 8MC8TGKym8GCUesyjLQHQU0T+AItEH+3P/d04ln0BTQsust0h25rOWy523Hfl+Ywull1bn VJr6Q3YKMlOzkH4oBB582ksh9IuLMOw= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-369-MZ4gobKSOR6M04ijtf7tPg-1; Thu, 16 Apr 2020 06:47:15 -0400 X-MC-Unique: MZ4gobKSOR6M04ijtf7tPg-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 75C51801E53; Thu, 16 Apr 2020 10:47:13 +0000 (UTC) Received: from t480s.redhat.com (ovpn-114-9.ams2.redhat.com [10.36.114.9]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8E66A1001920; Thu, 16 Apr 2020 10:47:08 +0000 (UTC) From: David Hildenbrand To: linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org, David Hildenbrand , Andrew Morton , Anshuman Khandual , Baoquan He , Michal Hocko , Mike Rapoport , Oscar Salvador , Pankaj Gupta Subject: [PATCH RFC 0/2] mm/memory_hotplug: handle memblocks only with CONFIG_ARCH_KEEP_MEMBLOCK Date: Thu, 16 Apr 2020 12:47:05 +0200 Message-Id: <20200416104707.20219-1-david@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Content-Transfer-Encoding: quoted-printable 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: While working on some other cleanups I stumbled over the creation/removal of memblocks in hotplug code and wondered why we still need that. Turns out, we only need that handling with CONFIG_ARCH_KEEP_MEMBLOCK - unless I am missing something important (-> RFC). I'll be sending out patches to remove CONFIG_ARCH_KEEP_MEMBLOCK on s390x soonish, after finding a way to test them. Gave it a quick test on x86-64. David Hildenbrand (2): mm/memory_hotplug: no need to init new pgdat with node_start_pfn mm/memory_hotplug: handle memblocks only with CONFIG_ARCH_KEEP_MEMBLOCK mm/Kconfig | 3 +++ mm/memory_hotplug.c | 28 +++++++++++++--------------- 2 files changed, 16 insertions(+), 15 deletions(-) --=20 2.25.1