Re: [PATCH 1 of 6] hotplug-memory: refactor online_pages to separate zone growth from page onlining

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jeremy Fitzhardinge
Date: Thursday, April 3, 2008 - 6:32 pm

Dave Hansen wrote:

Does it even need to be a separately visible function?  Could it just be 
part of add_memory()?  Is there any reason delay doing it until 
online_pages()?

That way online_pages() can return to being the one-stop function to 
online all the pages, making mark_pages_online() redundant.


No.  It will always call the GOING_ONLINE notifier, but it will only 
call the ONLINE notifier if it actually bulk-onlines all the pages.  In 
my page-by-page case, it will never end up calling the ONLINE notifier.  
I could call it repeatedly for each page, but I'm not sure how useful 
that is (the lack of any users of the ONLINE notifier makes it hard to 
judge).

    J
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0 of 6] [RFC] another attempt at making hotplug mem ..., Jeremy Fitzhardinge, (Thu Apr 3, 5:05 pm)
[PATCH 1 of 6] hotplug-memory: refactor online_pages to se ..., Jeremy Fitzhardinge, (Thu Apr 3, 5:05 pm)
[PATCH 2 of 6] xen: make phys_to_machine structure dynamic, Jeremy Fitzhardinge, (Thu Apr 3, 5:05 pm)
[PATCH 3 of 6] xen-balloon: use memory hot-add to expand t ..., Jeremy Fitzhardinge, (Thu Apr 3, 5:05 pm)
[PATCH 4 of 6] hotplug-memory: use common online_page, Jeremy Fitzhardinge, (Thu Apr 3, 5:05 pm)
[PATCH 5 of 6] hotplug-memory: add section_ops, Jeremy Fitzhardinge, (Thu Apr 3, 5:05 pm)
[PATCH 6 of 6] xen-balloon: define a section_ops, Jeremy Fitzhardinge, (Thu Apr 3, 5:05 pm)
Re: [PATCH 5 of 6] hotplug-memory: add section_ops, Dave Hansen, (Thu Apr 3, 5:51 pm)
Re: [PATCH 4 of 6] hotplug-memory: use common online_page, Jeremy Fitzhardinge, (Thu Apr 3, 5:56 pm)
Re: [PATCH 4 of 6] hotplug-memory: use common online_page, Jeremy Fitzhardinge, (Thu Apr 3, 6:11 pm)
Re: [PATCH 5 of 6] hotplug-memory: add section_ops, Jeremy Fitzhardinge, (Thu Apr 3, 6:12 pm)
Re: [PATCH 1 of 6] hotplug-memory: refactor online_pages t ..., Jeremy Fitzhardinge, (Thu Apr 3, 6:20 pm)
Re: [PATCH 1 of 6] hotplug-memory: refactor online_pages t ..., Jeremy Fitzhardinge, (Thu Apr 3, 6:32 pm)
Re: [PATCH 5 of 6] hotplug-memory: add section_ops, KAMEZAWA Hiroyuki, (Thu Apr 3, 6:47 pm)
Re: [PATCH 5 of 6] hotplug-memory: add section_ops, Dave Hansen, (Thu Apr 3, 6:52 pm)
Re: [PATCH 5 of 6] hotplug-memory: add section_ops, Jeremy Fitzhardinge, (Thu Apr 3, 10:32 pm)
Re: [PATCH 1 of 6] hotplug-memory: refactor online_pages t ..., Jeremy Fitzhardinge, (Thu Apr 3, 10:34 pm)
Re: [PATCH 5 of 6] hotplug-memory: add section_ops, Jeremy Fitzhardinge, (Thu Apr 3, 10:35 pm)
Re: [PATCH 5 of 6] hotplug-memory: add section_ops, Dave Hansen, (Fri Apr 4, 7:22 am)
Re: [PATCH 5 of 6] hotplug-memory: add section_ops, Jeremy Fitzhardinge, (Fri Apr 4, 11:21 am)
Re: [PATCH 5 of 6] hotplug-memory: add section_ops, Christoph Lameter, (Fri Apr 4, 12:28 pm)
Re: [PATCH 5 of 6] hotplug-memory: add section_ops, Jeremy Fitzhardinge, (Fri Apr 4, 1:38 pm)