Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp2738423ybh; Mon, 16 Mar 2020 08:47:11 -0700 (PDT) X-Google-Smtp-Source: ADFU+vv3HnMYQ2zY6Uv2NFVXFcJDFyZgCC+r+xIVaquNowuuv6Q7Bs5HnVjaqscmEupEpl09L3WW X-Received: by 2002:a05:6830:1249:: with SMTP id s9mr21401110otp.359.1584373630918; Mon, 16 Mar 2020 08:47:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584373630; cv=none; d=google.com; s=arc-20160816; b=qfRinnq/9dl6ikhB/GgmchIY/tmICcKAExb4vGB6T6gIoksL6a8mAY7AOCIJP9GeaW EvqkgyMZnqljzwAjLUH7Hdqxqqwnb8Lsuc5uPHCEBNnlIAARY8ujcLEFjv8MNMy6bsGQ JPb16LtLxbxbS0TGAkjR+Gjo093uaha7IoQ/TdgQ7JY/Gyoia4D2Rxp24fAg8XZ04O15 4MEMAsP4x214ortgpD3ZBkbREIb2E8k77fInaK/DmUiDheRR0GFP4l7x/x5M1bOHECRu HbI8GMi7DN2vezfnjhqV39WIXDmqXAG928YJOGL3nzmFzUbTAr0fnUtdcdWUFYA9nLo+ njxQ== 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=MGxsdsEHOherRp17TfnieaB5yDaVnKlVFdsLG6O6di8=; b=i2CvGTEotdiP1nN0uHL0xoS3Q7loDFKBn9L8gV6kJ/sC011HXx/38LUcW0G0vgadQc FimlSleiIWYNFQXbqSpQLuOa7KwcUpk2drnmuZKEGr+CJiHON0OaskTs+CPZY5thyvXV RE619FrzJOz3S/3gsrRy2n/5y70GsqIR6P3Z1RTyCF+qNm/bGpH9l4Zp5Yuv/hHpZV5A i3MzTVm3s8aO3zMc8YO8NpZ9xcwM+xi+DZ+6GEnsX3v9mXUA6SgeluGz1lZ8L4eUajvH 4xlQdh0eSQES7Rnn6x87RWhs8jnHI5UOnvwU6xwYCZIEj51H4KKK7O1iVNxL/rYPVRvf E3kg== 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w11si139484otp.239.2020.03.16.08.46.58; Mon, 16 Mar 2020 08:47:10 -0700 (PDT) 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731920AbgCPPqi (ORCPT + 99 others); Mon, 16 Mar 2020 11:46:38 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:55180 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731555AbgCPPqi (ORCPT ); Mon, 16 Mar 2020 11:46:38 -0400 Received: by mail-wm1-f65.google.com with SMTP id n8so18208092wmc.4; Mon, 16 Mar 2020 08:46:37 -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=MGxsdsEHOherRp17TfnieaB5yDaVnKlVFdsLG6O6di8=; b=oL4V0XiJUl0pyMqtuz3VhR8GPGJoG7vOUtpR6rC9zsfo1qOZHsYivABB7NUvcGiz1e sfxrfxW7paJLp0irUM7RTIN+VzmPzXFtVdUXuNoeDnqCmKekXAsr7XG6++VQIpLB1+JA cuvl9SmepE+bsebhf8z1tAx1SsefZtDwG6COs55PXVxwzXtJPi7ivMgdPkgMSvHAj5gF 4CzkvnHIMseJ3mXHhRxjXFG6fMeBTEDJYw+qjNJBGWh58bCFAlmHU4gt7X7/RGKbui2S +aAou35g4lUrmiZJ/aHG60EIoZ8NTXSQiczLSUCz8l/88siefNZxd/A0xj3JY+PlZqam Uo7g== X-Gm-Message-State: ANhLgQ1d3Rd6//v0DYoCJFd77yfZgu+ucdBobkmVsipcnvMC2F2s46Np SFpqOGjbPOGz3vYkpB/46+26LJRj X-Received: by 2002:a05:600c:218f:: with SMTP id e15mr30190351wme.152.1584373596535; Mon, 16 Mar 2020 08:46:36 -0700 (PDT) Received: from localhost ([37.188.132.163]) by smtp.gmail.com with ESMTPSA id y189sm138209wmb.26.2020.03.16.08.46.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Mar 2020 08:46:35 -0700 (PDT) Date: Mon, 16 Mar 2020 16:46:34 +0100 From: Michal Hocko To: David Hildenbrand Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, linuxppc-dev@lists.ozlabs.org, linux-hyperv@vger.kernel.org, Greg Kroah-Hartman , Andrew Morton , Oscar Salvador , "Rafael J. Wysocki" , Baoquan He , Wei Yang , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , Wei Liu , Thomas Gleixner Subject: Re: [PATCH v1 4/5] mm/memory_hotplug: convert memhp_auto_online to store an online_type Message-ID: <20200316154634.GX11482@dhcp22.suse.cz> References: <20200311123026.16071-1-david@redhat.com> <20200311123026.16071-5-david@redhat.com> <20200316152459.GV11482@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 16-03-20 16:34:06, David Hildenbrand wrote: [...] > Best I can do here is to also always online all memory. Yes that sounds like a cleaner solution than having a condition that doesn't make much sense at first glance. -- Michal Hocko SUSE Labs