Mike, On Mon, Jan 07, 2019 at 06:06:21PM -0800, Mike Kravetz wrote: > On 1/7/19 10:13 AM, Gaël PORTAY wrote: > > (...) > > > > I have also removed the mutex (start_isolate_page_range retunrs -EBUSY), > > and it worked (in my case). > > > > But I did not do the proper magic because I am not sure of what should > > be done and how: -EBUSY is not handled and __GFP_NOIO is not honored. > > If we remove the mutex, I am pretty sure we would want to distinguish > between the (at least) two types of _EBUSY that can be returned by > alloc_contig_range(). Seems that the retry logic should be different if > a page block is busy as opposed to pages within the range. > > I'm busy with other things, but could get to this later this week or early > next week unless someone else has the time. Thank you. To not hesitate to ping me if you need to test things. Regards, Gael