Unverified Commit 122be423 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!3065 support page eject

Merge Pull Request from: @ci-robot 
 
PR sync from: Wupeng Ma <mawupeng1@huawei.com>
https://mailweb.openeuler.org/hyperkitty/list/kernel@openeuler.org/message/ULCM52MVEHK4ROP6RSEWSTSY6I24OJYG/ 
From: Ma Wupeng <mawupeng1@huawei.com>

Page ejection is achieved by soft_offline_page and unpoison_memory. A
linked list is maintained to log the pfns which are offlined by this
module. Only the pfns present in the list is allowed to go online.

The follow sysfs is introduced to online/offline page via this
module, since there is a internal linked list to record all
offlined pages, remove_page is introduced when a user no longer
wishes to online this particular page. To reduce the length of
the internal list, this function removes the specified page from
the list.

- /sys/kernel/page_eject/online_page
- /sys/kernel/page_eject/offline_page
- /sys/kernel/page_eject/remove_page

Changelog since v2:
 - bugfix for page_eject_clear_list_locked

Changelog since v1:
 - remove mce related patches temporarily.

Ma Wupeng (3):
  mm/hwpoison: Export symbol soft_offline_page
  mm: page_eject: Introuduce page ejection
  config: update defconfig for PAGE_EJECT


-- 
2.25.1
 
https://gitee.com/openeuler/kernel/issues/I8K5CO 
 
Link:https://gitee.com/openeuler/kernel/pulls/3065

 

Reviewed-by: default avatarXiaoFei Tan <tanxiaofei@huawei.com>
Reviewed-by: default avatarKefeng Wang <wangkefeng.wang@huawei.com>
Reviewed-by: default avatarLiu Chao <liuchao173@huawei.com>
Signed-off-by: default avatarJialin Zhang <zhangjialin11@huawei.com>
parents 8fd5d7da 686d7c67
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment