Re: [RFC] HWPOISON: soft offlining for non-lru movable page

From: Michal Hocko
Date: Wed Jan 18 2017 - 05:04:38 EST


On Wed 18-01-17 12:00:54, Yisheng Xie wrote:
> This patch is to extends soft offlining framework to support
> non-lru page, which already support migration after
> commit bda807d44454 ("mm: migrate: support non-lru movable page
> migration")
>
> When memory corrected errors occur on a non-lru movable page,
> we can choose to stop using it by migrating data onto another
> page and disable the original (maybe half-broken) one.

soft_offline_movable_page duplicates quite a lot from
__soft_offline_page. Would it be better to handle both cases in
__soft_offline_page?
--
Michal Hocko
SUSE Labs