Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp536454imm; Wed, 8 Aug 2018 01:02:35 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzQROPOSs6V9WjTo97E8m2vQFcvnNMGKWQPj/9IYrAsZmFB7GGSZWwRVKE8ktL/NljjwaIY X-Received: by 2002:a63:e318:: with SMTP id f24-v6mr1494525pgh.175.1533715355769; Wed, 08 Aug 2018 01:02:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533715355; cv=none; d=google.com; s=arc-20160816; b=oZrhOrOCoSU7+MtFdq4lt0LpGeWRRRbMKL4V2eLZd6DO+VP1rF3BRq7goXD0lRjBE8 TsODXi6S8ZFYdW5qxyVmAkhhaHbZUDt2E3Rsjf/nAsDbHXGt2hEzu7vAoKI39fyBBj9O NQLDmaQdSmhPaC33AdmpLvSWIqjZ5zTuAYJf8ffv2Zce+TwituzYrS/gDvSVwuEKtEzW AZfsnIc1l6ei/uZHEwnsNqBZh/LOBrIaJJt1l6xctfCKfef8U2XXW9uDUpCwpNQF5Jen 9fJFnffDtbiOkcbv0g/orazt3vLgcQj2u060ibvdqZwc5GQeLW4Te2cxDIfMCc10cipW iLLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=CGEeHhdKYPtULeKuyC8w6Zzmhz8Vu5OQoELCkXhfE18=; b=n8uCyJKTTBuFSQY9J1iYiHuhgK7gqPYWqrBR1Wx3oY0E9zvXCnYF9oEj00Y4i8uyPA +/kmWO4z2MA8wQ/ugTTRpF/B97gG86AIwe9UxDAeH1KhsvjRjqVPO6NTqNFCvCR9DBaL 24Ybp3WmVonnXlhA9fVevCp7OTkustecwLcVg4AaVozL70wRuEUmSzIylHOMxXahnuEi 14Kjl2cyUvJhV8Vy5DoMgw5K+YMnEXy5OZwq9hgg60JUaOK7RgIp6WziIHuURTWEn0LR CCKSxk2W/qW9Z5Q/gljsogjeX5R8hHzATGg9pNPd5MpoHgMQ2x5I11cnzG6OB6X7Hdx4 2zkQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j91-v6si2826042pld.474.2018.08.08.01.02.21; Wed, 08 Aug 2018 01:02:35 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727167AbeHHKTX (ORCPT + 99 others); Wed, 8 Aug 2018 06:19:23 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:54238 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726939AbeHHKTX (ORCPT ); Wed, 8 Aug 2018 06:19:23 -0400 Received: by mail-wm0-f65.google.com with SMTP id s9-v6so1706500wmh.3 for ; Wed, 08 Aug 2018 01:00:51 -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:user-agent; bh=CGEeHhdKYPtULeKuyC8w6Zzmhz8Vu5OQoELCkXhfE18=; b=A1cEWz50YHv6RaoeGCjefK6ycnwPRRVx29CoRezdPVVuxCH672MC7Bsy0Re7CJJc5a ZrxtYlKfxsZuvaQOq19EQDfgMBaMJmH/UGcGdfvEbt4cHT42xRoQVTFKMS4csIAYkmkj TfwcToRddwKNmigdNZ3LgIHi5J7feT2RnZdeCIAT4oS8c0cnixdHrSw2F5qFHUDqZdVZ db4+apS8rlbHdUstbNiYhVqwrYbdIxTFfNm1tkeaYB0RJBkpYeScZSBuxJsPfo2tgJjs q5Yvz5EOFZqMTJlYHULFg9ynXTjhHQT6CUfNQy3a/gau+HqLL/38tow7fp55hzSXFdKz lAVg== X-Gm-Message-State: AOUpUlGU8D9APC4FuwuXHRYUccwq7TnhGAcyY2PDF+7QuI7I9F7TyTc+ c0YH1QBuzelmyprnn7TazSAvlaMzR8w= X-Received: by 2002:a1c:9e89:: with SMTP id h131-v6mr1050027wme.13.1533715251225; Wed, 08 Aug 2018 01:00:51 -0700 (PDT) Received: from techadventures.net (techadventures.net. [62.201.165.239]) by smtp.gmail.com with ESMTPSA id t6-v6sm5354203wmf.8.2018.08.08.01.00.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 Aug 2018 01:00:50 -0700 (PDT) Received: by techadventures.net (Postfix, from userid 1000) id F2DF112476F; Wed, 8 Aug 2018 10:00:49 +0200 (CEST) Date: Wed, 8 Aug 2018 10:00:49 +0200 From: Oscar Salvador To: David Hildenbrand Cc: Jerome Glisse , akpm@linux-foundation.org, mhocko@suse.com, dan.j.williams@intel.com, pasha.tatashin@oracle.com, yasu.isimatu@gmail.com, logang@deltatee.com, dave.jiang@intel.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Oscar Salvador Subject: Re: [RFC PATCH 2/3] mm/memory_hotplug: Create __shrink_pages and move it to offline_pages Message-ID: <20180808080049.GC9568@techadventures.net> References: <20180807133757.18352-1-osalvador@techadventures.net> <20180807133757.18352-3-osalvador@techadventures.net> <20180807135221.GA3301@redhat.com> <20180807204834.GA6844@techadventures.net> <20180807221345.GD3301@redhat.com> <20180808073835.GA9568@techadventures.net> <24da07b9-5e06-af1d-42d3-c663eade16ea@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <24da07b9-5e06-af1d-42d3-c663eade16ea@redhat.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 08, 2018 at 09:51:50AM +0200, David Hildenbrand wrote: > > I am pretty sure this is a dumb question, but why HMM/devm path > > do not call online_pages/offline_pages? > > I think mainly because onlining/offlining (wild guesses) > > - calls memory notifiers > - works with memory blocks > > (and does some more things not applicable to ZONE_DEVICE memory) Yes, you are right. They call arch_add_memory while want_memblock being false and so they do not get to call hotplug_memory_register which handles all the memory block stuff. Thanks -- Oscar Salvador SUSE L3