Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1741217imm; Thu, 9 Aug 2018 00:53:14 -0700 (PDT) X-Google-Smtp-Source: AA+uWPywKzjiMeNKkSXf/6n63Avd7qSIvJyh/9eanPMOIsgH8DpbLChGXAAT9YEaXM0HiAlPO9GB X-Received: by 2002:aa7:8307:: with SMTP id t7-v6mr1203445pfm.81.1533801194495; Thu, 09 Aug 2018 00:53:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533801194; cv=none; d=google.com; s=arc-20160816; b=0T2g61X3WKxjPOTwbgw+3N+cYsbeSRsmZ/nenkCyu/o+KBDQA9vEl2uIH3GNzpro79 anSF/sYe+1RN7jzux7yKSfZMIW4b8htgCsPaO/ksqyiQbwetg5Ri+jTD9fyr8QpaJke4 h66acWsyAiwRFRylszOuUCWwZFuwqlUxUagpR1403VOZ2KT2Q5MIG0Jx+ret/ScuaixC 0rQlgSWWoS8oETRbDjNhReYIZEzUQNrVTkpFv927VES2jc+La4hdo13Gf+Izy3qK0jpm DzR9FbRhVJGZ3Rd73qjqiIuofJwVcuRa7/AkLm/aVSTmEYTC/j4O+EQU1nXQTaCrBuLc HvMA== 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=5nqZ9uKhe5dKOemdoTPenoxHA0niXDfY8q89LJqfZIA=; b=CAqzUSGnCZsR6DlsvTZcylCi7OsAAgBnwY1u/65qEX2mW+iJ1oChQybf5LRkWIvsaE O86yVI5VSBUzP89SugsxtfpM1PCsyMe92LnrEPbgohTtZjom9QfL7ehq82JJaXMcxV86 SUtms+wfkVG+ZY1gOhUjxSY+k86wUlu9GDynFtAzdbfFW5UrarmcV94VdgTzBxBXsLRR 2mHJyGvfQEPfZ45p+R7noV3ujiEE0OlmWml2dFu/kkWokS1Vu7zSiKrcp4zXqUTVQbpQ 4Qr6LIX/gpN/47VD+GxddC177mRM/QGgJKAlJ6ArvXfURilroT0uYUflkdXVaUqx1xd7 UNMw== 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 h2-v6si6779364pgk.330.2018.08.09.00.52.59; Thu, 09 Aug 2018 00:53:14 -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 S1728488AbeHIKPo (ORCPT + 99 others); Thu, 9 Aug 2018 06:15:44 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:42355 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727525AbeHIKPo (ORCPT ); Thu, 9 Aug 2018 06:15:44 -0400 Received: by mail-wr1-f66.google.com with SMTP id e7-v6so4261308wrs.9 for ; Thu, 09 Aug 2018 00:52:07 -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=5nqZ9uKhe5dKOemdoTPenoxHA0niXDfY8q89LJqfZIA=; b=avLe3oY5ZKwShKT3L33jQ9liSa4ExUUA9x6Q04cRl6gHmqnezHhzZW7t0RdkX+eAXE jZQ3d6Sn+DbrOiRyvEyYjixpkwWI5kkFB+J3o8nG42hPCv18KW616KS/PlnmWVFFWJe2 choBBHvW+9nPjQgMktsO/DGJcj86KbyvnkNJGXSjjKujh+bjmiEQ7mXAS/1+Tvw0n5M4 xrcfBeRunuZvIwF066RCbFg3MC5Omhr2nZE8JJLhYg6nD0UHt37Jj3oV2uoDgsmVFsxd RFX0MKiKD45dSr1IETDR3QQRCpvOAVYGIvqoUdD/PVV0xS0kMzbvLMmrnqRL9uN6aeuq tqIA== X-Gm-Message-State: AOUpUlGh1agyYwWxTwU4V7BWfooLR+pe3s8hvblJQi9mrDDwb1QQ9X4h c5JZo+chw2SojRc6S7IL52Q= X-Received: by 2002:a5d:5385:: with SMTP id d5-v6mr643947wrv.151.1533801126542; Thu, 09 Aug 2018 00:52:06 -0700 (PDT) Received: from techadventures.net (techadventures.net. [62.201.165.239]) by smtp.gmail.com with ESMTPSA id a12-v6sm6368940wru.61.2018.08.09.00.52.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Aug 2018 00:52:05 -0700 (PDT) Received: by techadventures.net (Postfix, from userid 1000) id 4B4A21247BB; Thu, 9 Aug 2018 09:52:05 +0200 (CEST) Date: Thu, 9 Aug 2018 09:52:05 +0200 From: Oscar Salvador To: Jerome Glisse Cc: David Hildenbrand , akpm@linux-foundation.org, mhocko@suse.com, dan.j.williams@intel.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: <20180809075205.GB14802@techadventures.net> References: <20180807204834.GA6844@techadventures.net> <20180807221345.GD3301@redhat.com> <20180808073835.GA9568@techadventures.net> <44f74b58-aae0-a44c-3b98-7b1aac186f8e@redhat.com> <20180808075614.GB9568@techadventures.net> <7a64e67d-1df9-04ab-cc49-99a39aa90798@redhat.com> <20180808134233.GA10946@techadventures.net> <20180808175558.GD3429@redhat.com> <20180808212908.GB12363@techadventures.net> <20180809075055.GA14802@techadventures.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180809075055.GA14802@techadventures.net> 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 Thu, Aug 09, 2018 at 09:50:55AM +0200, Oscar Salvador wrote: > On Wed, Aug 08, 2018 at 11:29:08PM +0200, Oscar Salvador wrote: > > On Wed, Aug 08, 2018 at 01:55:59PM -0400, Jerome Glisse wrote: > > > Note that Dan did post patches that already go in that direction (unifying > > > code between devm and HMM). I think they are in Andrew queue, looks for > > > > > > mm: Rework hmm to use devm_memremap_pages and other fixes > > > > Thanks for pointing that out. > > I will take a look at that work. > > Ok, I checked the patchset [1] and I think it is nice that those two (devm and HMM) > get unified. > I think it will make things easier when we have to change things for the memory-hotplug. > Actually, I think that after [2], all hot-adding memory will be handled in > devm_memremap_pages. Forgot to include the links: [1] https://lkml.org/lkml/2018/6/19/108 [2] https://lkml.org/lkml/2018/6/19/110 -- Oscar Salvador SUSE L3