Re: [PATCH] mm, memory_hotplug: Don't bail out in do_migrate_range prematurely

From: David Hildenbrand
Date: Tue Dec 11 2018 - 05:35:21 EST


On 11.12.18 11:20, Michal Hocko wrote:
> On Tue 11-12-18 10:35:53, David Hildenbrand wrote:
>> So somehow remember if we had issues with one page and instead of
>> reporting 0, report e.g. -EAGAIN?
>
> There is no consumer of the return value right now and it is not really
> clear whether we need one. I would just make do_migrate_range return void.
>

Well, this would allow optimizations like "No need to check if
everything has been migrated, I can tell you right away that it has been
done".

--

Thanks,

David / dhildenb