Commit c3c8bbec authored by Tang Yizhou's avatar Tang Yizhou Committed by Yang Yingliang
Browse files

share_pool: Don't do direct reclaim or compact for vmalloc_huge* funcs

ascend inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I4EUVI


CVE: NA

-------------------------------------------------

We found a hungtask problem when do direct compact in
__alloc_pages_nodemask:

vmalloc_hugepage_user -> __vmalloc_node_range -> __vmalloc_area_node ->
sp_alloc_pages -> alloc_huge_page_node -> alloc_fresh_huge_page ->
__alloc_pages_nodemask.

Set PF_MEMALLOC then direct reclaim and direct compact won't be called.

Signed-off-by: default avatarTang Yizhou <tangyizhou@huawei.com>
Reviewed-by: default avatarDing Tianhong <dingtianhong@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Reviewed-by: default avatarWeilong Chen <chenweilong@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent bf95ee84
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment