From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qv1-f49.google.com (mail-qv1-f49.google.com [209.85.219.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D12662BFC85 for ; Wed, 14 Jan 2026 17:28:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768411717; cv=none; b=EBZrRpEyg9td9wozMnusw0MRL612UERu4IJf66v11n0ydK+lgFUq3k3uoi0cmhzH9DwD+4RmyH+opn7+nroQCnalqNTThyxH0toet9WuItY+eo46b/9NL4hee0awx8KQR+6OXZ0LmsZNG64Ziqg4r1wOsuAfwF9klM3iEhadPNE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768411717; c=relaxed/simple; bh=pn2FMj69xGy0y/5Gx9Y/UeewmmSegh4/cOxhPfcbyl0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=OqQvsN0oHO6Jci4WUFdjvRq+AZnqQ68M47UceFA9NFZsrymBAZywVzsoSLnp4sL2JtUmCLF/wcbkkHqCpu324Agf6a0ueoSM3Y3uyGbwgLq8uDRRaYCgjg8BbxqdzxifgobrYc2EmziedQ6uYsl5g1kskP7kTkFu8LXE8qLna2Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=gourry.net; spf=pass smtp.mailfrom=gourry.net; dkim=pass (2048-bit key) header.d=gourry.net header.i=@gourry.net header.b=gLOKO3gS; arc=none smtp.client-ip=209.85.219.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=gourry.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gourry.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gourry.net header.i=@gourry.net header.b="gLOKO3gS" Received: by mail-qv1-f49.google.com with SMTP id 6a1803df08f44-88a288811a4so85958196d6.3 for ; Wed, 14 Jan 2026 09:28:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gourry.net; s=google; t=1768411715; x=1769016515; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=M8gk61w9S/yjYbnW7IJJtdpbyzDzV71vvh8bvL1b1DI=; b=gLOKO3gSTyccUYywZb35A02WxIqUgxHVDlmvszP62iQQDqqQ8wn4Hc1rpgfHuvOktZ t8foui6/1MtMZufeXldYyvrbOJbZo7ssKJmxbv5Pppo5RmtMVAYTuQ0Mq1RpcXmbigaK /HrPLTaQSqY5nCeOp6BTj5VSxi7fM48Q7uVXb6C2D+7NL/I3IuKyGEej3KGPkqVaC3f3 lPEoYphI3lgWgTSIBxwkS0ZJCe8/5pPPSMDUYJVrrAdj87KP4B9aI4bGI/JUD5P3p03B SO1si4hCUBeHOG2S1OJBiNqUhWFUgYRWEqmZ/dFhVFrata+0IwRkxsRW4sFVa07O4OF/ D5Bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768411715; x=1769016515; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=M8gk61w9S/yjYbnW7IJJtdpbyzDzV71vvh8bvL1b1DI=; b=iZMw9VPVLOp+RfL+rspet/Y2dN4F1Otfwoqk1EG9VoTLnOV1tE/xbR08hECmDLi6mx dVibEUKv7DQpqBCR5opa2scUqiBH5jeKoHGvcj6nL8MagUlKuxeq82bNImYWo997CwiG Xd2jCNI+8UnCRudO5Jux3xvLYCou++ipBH6gIcdt3S896exLlfQx8pudfZZZGNN6BcVb LqPUBMY1+S8DPphH6WWrgKDLfMFf5Kz5NPjEESxsHAzum6itMdI0iilIFgNXxZyKr+GX UUk41gzYt65e4pTNtwIRQd6boIQZB0tTS/Sqx2aRPwD+HKsEtAjlacVhhQTUNHxiZFt5 Oaug== X-Forwarded-Encrypted: i=1; AJvYcCXPEfbig/lNzISWMDKEveMfzjq15jnEGAg+70hlLKT/w2NjKv0KiztY95g48JjfIziq6kb8BEzu5n1asP0=@vger.kernel.org X-Gm-Message-State: AOJu0YwdNqcxJqlF/HJ2frCz0c8XZskyaqAXvPYFJaQa+SN4WtxTOYdD ZQQWFYzNsTWiq+JcVqfu0lSxIgFTTCSF0sNCWQxHQXLIb5PWaePbOcTu0s4KFWJeag4= X-Gm-Gg: AY/fxX72N0FbhqDO+3tCx9cMce4AeltwQD8sXn5Xhw9wz8ot5SUOs1AKw8eeYqQxLXp f8UcBkA/iW9DKCWfBVN/uYEEn8/BjZ6JXwgtffBkW6V71kr7CCkmLCNIquCzcWQbOss8vqBmgXh SIaeGtctNgxYKXmHV7sS9RqnXiuzYUDlEISDKmaxg9oCqP1kHINPQsQ3AuwjDjwpEAQKitpwmoT tI0Q0DGdu2Uyov37kDBldW/St+5MErEJk6s/CKebrut5iiejUBFSsFlD2HemWz2KnQRt2kBFe+Y O7lLhghRY5qCttws5OmMxLHgr/1qdNNZ1fONwxXUzaV1PMdQ8/Qene3h0z7Vq+3gQLyBmdfayqu 2YA7brbhUa+XjkX+quDIgh9aa2AVaIV2noZ59I3Vo1bFhQ8NGvQAZmoHxvEQQI2p9TtDMZ0cOBh uGMJFIFhdrifp4RIRBj4/70udL4XNHn3ENXJmWNyah4wwEJpNkbqL7ToUaVHkt2C214dHtOw== X-Received: by 2002:a05:6214:f6c:b0:87d:e2b:cdf7 with SMTP id 6a1803df08f44-8927445388dmr42459046d6.66.1768411714702; Wed, 14 Jan 2026 09:28:34 -0800 (PST) Received: from gourry-fedora-PF4VCD3F (pool-96-255-20-138.washdc.ftas.verizon.net. [96.255.20.138]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-8927a07c731sm10671566d6.34.2026.01.14.09.28.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Jan 2026 09:28:34 -0800 (PST) Date: Wed, 14 Jan 2026 12:28:01 -0500 From: Gregory Price To: "David Hildenbrand (Red Hat)" Cc: linux-mm@kvack.org, linux-cxl@vger.kernel.org, nvdimm@lists.linux.dev, linux-kernel@vger.kernel.org, virtualization@lists.linux.dev, kernel-team@meta.com, dan.j.williams@intel.com, vishal.l.verma@intel.com, dave.jiang@intel.com, mst@redhat.com, jasowang@redhat.com, xuanzhuo@linux.alibaba.com, eperezma@redhat.com, osalvador@suse.de, akpm@linux-foundation.org Subject: Re: [PATCH 4/8] mm/memory_hotplug: return online type from add_memory_driver_managed() Message-ID: References: <20260114085201.3222597-1-gourry@gourry.net> <20260114085201.3222597-5-gourry@gourry.net> <6a9db6ff-2fe8-4be6-baba-7db7913898f2@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6a9db6ff-2fe8-4be6-baba-7db7913898f2@kernel.org> On Wed, Jan 14, 2026 at 11:49:19AM +0100, David Hildenbrand (Red Hat) wrote: > On 1/14/26 09:51, Gregory Price wrote: > > Change add_memory_driver_managed() to return the online type (MMOP_*) > > on success instead of 0. This allows callers to determine the actual > > online state of the memory after addition, which is important when > > MMOP_SYSTEM_DEFAULT is used and the actual online type depends on the > > system default policy. > > Another reason to just let the caller handle MMOP_SYSTEM_DEFAULT itself by > calling mhp_get_default_online_type() :) > Yeah i don't even end up using it, this is just cruft from early iterations. I'll clean it up. ~Gregory