Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp648276ybz; Wed, 15 Apr 2020 15:55:33 -0700 (PDT) X-Google-Smtp-Source: APiQypLrY6dThXl2TLCIlqEPJTE0nS4ZIIPm9voT42V/qNPkDn24XI49xkBEwIgKzQUvB0+0Aw8J X-Received: by 2002:a50:a642:: with SMTP id d60mr27251183edc.351.1586991333621; Wed, 15 Apr 2020 15:55:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586991333; cv=none; d=google.com; s=arc-20160816; b=sqTPKGfrtH0LsRyz06H7sM67B/4qEeugCl1GePR0b8h90EwK7dVk84zG48ZdWXPZE5 93jx0ff8rN55emwJkdGcvAFssdCxv8GQ8KtqfnhrbeJQnqZ4zoKI9tzlo+63aqRychvM QgdyHTDbwzNCw0XSH5aNQ7ydHa3BVFVFT37csiM1vnmQ+B0yf8mQoPzZWfmJJ4fHDWek 426TQyXmQKQhTcouFy0S7G0eG+D6wKcn4ckgOGb8gbGxfprDkr/IhYcK7tooHxr4zQ/j ZjE/RUTvgD1uqe/0MOrEmS5zecrfnw/JRfVWAh1AzIiZWMXnwuIGi2On9gP7qRYA7tDX R0lQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=6RF4WufMmMDOeU7tEnVUbEzApfb4RzYUUgBLy7xNXoc=; b=W4ibzXdfajJcnGvKdlv9RBWrGbDLIvXjQYZCiDcKYnZR/LNNRh0LX9e0IRH1EhBaTU QCheA5nQku2ehcGQz/hmlxiyvmRgl6kfBQgE3yKAjw+nRJ7TIQzvZXXAyesDz/QlegZm wM+YVb5eLP1hUMVFJVPOfOJERPI9Z9IU5qK7qsBY+AfPP9p1jX4KMt7CqJ1z722ds9/x r/vaShugddxvr0KTTnVUaCR0mmTGLl5jH9CaoVgF/32GtKWdsznUmSwzrP6lUoQZExTs 5b2LTTKCgQ2IgneLZV16tWyolRcUjZnIzJoQqRq8r9mwjU17YC+mPekYezXCnqCeSAD7 NFfA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m21si10503475ejd.5.2020.04.15.15.55.09; Wed, 15 Apr 2020 15:55:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2896455AbgDOKUe (ORCPT + 99 others); Wed, 15 Apr 2020 06:20:34 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:33651 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2896400AbgDOKQX (ORCPT ); Wed, 15 Apr 2020 06:16:23 -0400 Received: by mail-wm1-f66.google.com with SMTP id v8so14574028wma.0 for ; Wed, 15 Apr 2020 03:16:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=6RF4WufMmMDOeU7tEnVUbEzApfb4RzYUUgBLy7xNXoc=; b=atK5g23fPaKzTeFIhsxxRawXT3tm5i1WNpt3Fg6OCKZf/ZdtvuyaFA6sF606aW1wmR 7PcYXEVu6AYZSmVBQTN/TNcqAG/PDS6cL/gQrWWdjLrJrzlZT11CvuhDcnIFOofVgF6a I6wWLwjZuEAyAVVPZSwN+JkK8AsvZVPpCuSr0YpGlaZZjGd1ubJy1GVhg8BvE0tYmwo/ EIcf3UoobCZ64BaI4l7WyLM4azlGgKm8fUnzmyGqX/MNnL6Vth9tljSLutENLORAtkA3 isXOCuEI6tcFbxfFFuy2TllW5ZV9c6DlX37pFGXO2Yo02JsTkQZcbST43ZxzLApF5i/m vkGQ== X-Gm-Message-State: AGi0PuY/3gJvnltPR9eXsPS/Zwn+G49xHxQnn0+DAtLewUDF/7dKgo5b 2Ddb1SePtSo6Vf/tN5JQ0Lo= X-Received: by 2002:a1c:5ac4:: with SMTP id o187mr4704758wmb.79.1586945781247; Wed, 15 Apr 2020 03:16:21 -0700 (PDT) Received: from localhost (ip-37-188-180-223.eurotel.cz. [37.188.180.223]) by smtp.gmail.com with ESMTPSA id h137sm17223451wme.0.2020.04.15.03.16.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Apr 2020 03:16:20 -0700 (PDT) Date: Wed, 15 Apr 2020 12:16:18 +0200 From: Michal Hocko To: David Hildenbrand Cc: Anshuman Khandual , linux-mm@kvack.org, linux-arm-kernel@lists.infradead.org, akpm@linux-foundation.org, catalin.marinas@arm.com, mark.rutland@arm.com, Dan Williams , Yu Zhao , Hsin-Yi Wang , Thomas Gleixner , Steve Capper , linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/2] arm64/hotplug: Process MEM_OFFLINE and MEM_CANCEL_OFFLINE events Message-ID: <20200415101618.GD4629@dhcp22.suse.cz> References: <1586932784-16315-1-git-send-email-anshuman.khandual@arm.com> <31ce355b-abf7-ac3b-a5b4-ae1b0a52fb3c@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <31ce355b-abf7-ac3b-a5b4-ae1b0a52fb3c@redhat.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 15-04-20 09:35:33, David Hildenbrand wrote: > On 15.04.20 08:39, Anshuman Khandual wrote: > > This series improves arm64 memory event notifier (hot remove) robustness by > > enabling it to detect potential problems (if any) in the future. But first > > it enumerates memory isolation failure reasons that can be sent across a > > notifier. This series does not go beyond arm64 to explore if these failure > > reason codes could be used in other existing registered memory notifiers. > > Please do let me know if there is any other potential use cases, will be > > happy to incorporate next time around. Also should we add similar failure > > reasons for online_pages() as well ? > > > > This series has been tested on arm64, boot tested on x86 and build tested > > on multiple other platforms. > > > > I'm sorry, but I have to nack this series. Why? > > 1. A hotplug notifier should not have to bother why offlining failed. He > received a MEM_GOING_OFFLINE, followed by a MEM_CANCEL_OFFLINE. That's > all he really has to know. Undo what you've done, end of story. > > 2. Patch 2 just introduces dead code that should never happen unless > something is horribly broken in the core (memory offlined although > nacked from notifier). And, it (for *whatever reason*) thinks it's okay > to bail out if another noYtifier canceled offlining hotplugged memory. > > I fail to see the benefit for core changes and Agreed! If arm64 wants to check and report early bootmem memory offlining then just do it. There is no reason to add a whole machinery for that. Cancel notifier is indeed only supposed to restore the state before GOING_OFFLINE. > 4 files changed, 99 insertions(+), 13 deletions(-) -- Michal Hocko SUSE Labs