[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180809205050.GA17222@techadventures.net>
Date: Thu, 9 Aug 2018 22:50:50 +0200
From: Oscar Salvador <osalvador@...hadventures.net>
To: Jerome Glisse <jglisse@...hat.com>
Cc: Michal Hocko <mhocko@...nel.org>, akpm@...ux-foundation.org,
dan.j.williams@...el.com, pasha.tatashin@...cle.com,
david@...hat.com, yasu.isimatu@...il.com, logang@...tatee.com,
dave.jiang@...el.com, linux-mm@...ck.org,
linux-kernel@...r.kernel.org, Oscar Salvador <osalvador@...e.de>
Subject: Re: [RFC PATCH 2/3] mm/memory_hotplug: Create __shrink_pages and
move it to offline_pages
On Thu, Aug 09, 2018 at 12:58:21PM -0400, Jerome Glisse wrote:
> > I would really prefer to be explicit about these requirements rather
> > than having subtle side effects quite deep in the memory hotplug code
> > and checks for zone device sprinkled at places for special handling.
>
> I agree, i never thought about that before. Looking at existing resource
> management i think the simplest solution would be to use a refcount on the
> resources instead of the IORESOURCE_BUSY flags.
>
> So when you release resource as part of hotremove you would only dec the
> refcount and a resource is not busy only when refcount is zero.
>
> Just the idea i had in mind. Right now i am working on other thing, Oscar
> is this something you would like to work on ? Feel free to come up with
> something better than my first idea :)
Hi Jerome,
Definetly it would be something I am interested to work on.
Let me think a bit about this and see if I can come up with something.
Thanks
--
Oscar Salvador
SUSE L3
Powered by blists - more mailing lists