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