Re: [PATCH] Make is_mem_section_removable more conformable with offlining code

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Wu Fengguang
Date: Tuesday, August 31, 2010 - 7:19 am

On Mon, Aug 23, 2010 at 05:22:46PM +0800, Michal Hocko wrote:

Yup, it may also be set to MIGRATE_ISOLATE by soft_offline_page().


Merge the two checks into an inline function?


Feel free to swap the order of tests :)


You don't have strong reasons to remove the free pages test, so why
not keep it? We never know what the user will do. He may regretted
immediately after onlining a node, and want to offline it..  Some
hackers may want to offline some 128MB memory blocks (by chance) with
the help of drop_caches.

Thanks,
Fengguang

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

Messages in current thread:
Re: [PATCH] Make is_mem_section_removable more conformable ..., Wu Fengguang, (Tue Aug 31, 7:19 am)
Re: [PATCH] Make is_mem_section_removable more conformable ..., KAMEZAWA Hiroyuki, (Tue Aug 31, 6:19 pm)
Re: [PATCH] Make is_mem_section_removable more conformable ..., KAMEZAWA Hiroyuki, (Wed Sep 1, 10:45 pm)
[PATCH 1/2][BUGFIX] fix next active pageblock calculation, KAMEZAWA Hiroyuki, (Thu Sep 2, 8:11 pm)
[PATCH 3/2][BUGFIX] fix memory isolation notifier return v ..., KAMEZAWA Hiroyuki, (Fri Sep 3, 12:57 am)