Message ID | 1563171470-3117-2-git-send-email-anshuman.khandual@arm.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 86DEB13BD for <patchwork-linux-mm@patchwork.kernel.org>; Mon, 15 Jul 2019 06:17:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 76E9222362 for <patchwork-linux-mm@patchwork.kernel.org>; Mon, 15 Jul 2019 06:17:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6858626D08; Mon, 15 Jul 2019 06:17:35 +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 B9BE722362 for <patchwork-linux-mm@patchwork.kernel.org>; Mon, 15 Jul 2019 06:17:34 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C3AE26B0006; Mon, 15 Jul 2019 02:17:33 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id BC4066B0007; Mon, 15 Jul 2019 02:17:33 -0400 (EDT) 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 A63D66B0008; Mon, 15 Jul 2019 02:17:33 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) by kanga.kvack.org (Postfix) with ESMTP id 591F46B0006 for <linux-mm@kvack.org>; Mon, 15 Jul 2019 02:17:33 -0400 (EDT) Received: by mail-ed1-f71.google.com with SMTP id i44so12911150eda.3 for <linux-mm@kvack.org>; Sun, 14 Jul 2019 23:17:33 -0700 (PDT) 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:in-reply-to:references; bh=fR0qheju1ReugcjNPqDZi/s2XyMltA//PhuA0FZEjmM=; b=nzrFLyu7x/RhMgrftkcKFMXFIahyQdQZhFR42u9ChOulp34PUzsdWvaEu+yyDzpUjM xKAE1HbVhybN45T2DapBOaWFLjTqq6b9/eSEKbPbsciWsDRJO7blSLdEd6xIdp8NBqtv 1xCDbitpRwUCp9lroStfA/xwrSCmTnymfbBXocTpy/58fwwwQNazg+42Btag8SPSAIdQ rJGKcQuIoOLgQiReVTd4ueAP5EzvPpgK5HxRvl/sGAQ25bCbcE40IlzyDrJsK+plstX+ JPhUCZBfTms1wFHeRFno1x+1+HOPHuBOTLbt8uNHHG0G3fsPUSwRYkG3FA6k3fhUAqnF RqCQ== X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of anshuman.khandual@arm.com designates 217.140.110.172 as permitted sender) smtp.mailfrom=anshuman.khandual@arm.com X-Gm-Message-State: APjAAAXkUwffAYJROzz7zud4iayR3Vj2ND98rGAv9R/ICT3JSRnEOTLH PsXapEx3Fa8W+sMvEUjqouI5gGtw6+MFHL02GJTUN0RuRQj1eiTZLFO+Pw/Bi0vthoK0NL1SPTP xXOt0dLhV0CBTefzAqMVYDIfLSOq4z9W8xh0vUbp6f21TtMbpx7w96N+tR0bjrWkpxA== X-Received: by 2002:a50:8dcb:: with SMTP id s11mr21009378edh.144.1563171452929; Sun, 14 Jul 2019 23:17:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqxT5Rrc9DqXIjvEJNHvVP9P8kbo9ue1AbobrbD8ftl6q7h+pXxHYExkcJ0vhfMpxmO0K+cQ X-Received: by 2002:a50:8dcb:: with SMTP id s11mr21009309edh.144.1563171451948; Sun, 14 Jul 2019 23:17:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563171451; cv=none; d=google.com; s=arc-20160816; b=AtZsVv25pSEBldo050EIuWPmlQbuAUqFjyMc6fQkNXnhPT5ZSRx4IMOram3dolHJ14 QCsMw/fgNIuwjVHQt2LJyQjjzjERG4NoXkIdXdjQvf2lxfOUE5P1ZfR6PX13fCyViQwW hHTVbRFzQgQLhuQsamGChxJC1y1SAw3ILsxpbzRJ4PUkfH2e7WIluSMfGYLhN8Zg+0HZ beGo/bWYnWQ2u8gQ+q11khZqOqG+FHKyx01xrmCJuaC6I5YGrL51IaMW/kN2RmqVLLhG dx8ck0H5mLYvkmlorNQD9F7eXcEMIHTkw6HNmrn6jPmmB4hUI0OnEg5axpsB7epffumD 7IKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from; bh=fR0qheju1ReugcjNPqDZi/s2XyMltA//PhuA0FZEjmM=; b=Ew6kXUbPu5OYbc9HWO1WulA70y/L0K2WkdBsKjJGndS/0Rr6epvBEfWGf4K6F7ZzIM KprHLh5e+eaco4w6AESn3lUOcxsc40EX2xX9RD4SMWuISYjTks3kJk1GCewxs9f9OppU QdZ4U3o5X4Pap2u1I3jNVGZuUaTizm3WjqL/B+oCAtqI+GKx1U3XsHRkyOaTFdgralR3 bJJC8BeEv4s5au8YA0Wu6kiLbw3LTiYyqjcUVhp6sO2TfZhEqAjXhM7dTTsSiDs6qIWX vye9jN15mcm2TcRYLsLAV5lCO3Z7ufnaf22picAuTgKP6iksBn/Ehw/2ooEbC8pnrQqU yC8g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of anshuman.khandual@arm.com designates 217.140.110.172 as permitted sender) smtp.mailfrom=anshuman.khandual@arm.com Received: from foss.arm.com (foss.arm.com. [217.140.110.172]) by mx.google.com with ESMTP id l41si10040628eda.255.2019.07.14.23.17.31 for <linux-mm@kvack.org>; Sun, 14 Jul 2019 23:17:31 -0700 (PDT) Received-SPF: pass (google.com: domain of anshuman.khandual@arm.com designates 217.140.110.172 as permitted sender) client-ip=217.140.110.172; Authentication-Results: mx.google.com; spf=pass (google.com: domain of anshuman.khandual@arm.com designates 217.140.110.172 as permitted sender) smtp.mailfrom=anshuman.khandual@arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id EF85C344; Sun, 14 Jul 2019 23:17:30 -0700 (PDT) Received: from p8cg001049571a15.blr.arm.com (p8cg001049571a15.blr.arm.com [10.162.40.143]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id B031B3F71F; Sun, 14 Jul 2019 23:19:24 -0700 (PDT) From: Anshuman Khandual <anshuman.khandual@arm.com> To: linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, akpm@linux-foundation.org, catalin.marinas@arm.com, will.deacon@arm.com Cc: mark.rutland@arm.com, mhocko@suse.com, ira.weiny@intel.com, david@redhat.com, cai@lca.pw, logang@deltatee.com, james.morse@arm.com, cpandya@codeaurora.org, arunks@codeaurora.org, dan.j.williams@intel.com, mgorman@techsingularity.net, osalvador@suse.de, ard.biesheuvel@arm.com, steve.capper@arm.com Subject: [PATCH V6 RESEND 1/3] mm/hotplug: Reorder memblock_[free|remove]() calls in try_remove_memory() Date: Mon, 15 Jul 2019 11:47:48 +0530 Message-Id: <1563171470-3117-2-git-send-email-anshuman.khandual@arm.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1563171470-3117-1-git-send-email-anshuman.khandual@arm.com> References: <1563171470-3117-1-git-send-email-anshuman.khandual@arm.com> 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: <linux-mm.kvack.org> X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
arm64/mm: Enable memory hot remove
|
expand
|
diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c index b9ba5b8..1635a89 100644 --- a/mm/memory_hotplug.c +++ b/mm/memory_hotplug.c @@ -1772,13 +1772,13 @@ static int __ref try_remove_memory(int nid, u64 start, u64 size) /* remove memmap entry */ firmware_map_remove(start, start + size, "System RAM"); - memblock_free(start, size); - memblock_remove(start, size); /* remove memory block devices before removing memory */ remove_memory_block_devices(start, size); arch_remove_memory(nid, start, size, NULL); + memblock_free(start, size); + memblock_remove(start, size); __release_memory_resource(start, size); try_offline_node(nid);