
From: Ma Wupeng <mawupeng1@huawei.com> hulk inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I8K5CO -------------------------------- During offline page in page ejection, page is copied in kernel space in migrate page, set PF_MCS to task flags to support mc. Signed-off-by: Ma Wupeng <mawupeng1@huawei.com> --- drivers/ras/page_eject.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/ras/page_eject.c b/drivers/ras/page_eject.c index be5f58ab1518..62a5dbd0fa0a 100644 --- a/drivers/ras/page_eject.c +++ b/drivers/ras/page_eject.c @@ -68,6 +68,7 @@ static int page_eject_offline_page(unsigned long pfn) return -EINVAL; } + current->flags |= PF_MCS; /* * if soft_offline_page return 0 because PageHWPoison, this pfn * will add to list and this add will be removed during online @@ -79,6 +80,7 @@ static int page_eject_offline_page(unsigned long pfn) ret, pfn); return ret; } + current->flags &= ~PF_MCS; item = kzalloc(sizeof(struct ejected_pfn), GFP_KERNEL); if (!item) -- 2.25.1