Bug 7040 - mm: release hugetlb pages to buddy allocator after migrate them
Summary: mm: release hugetlb pages to buddy allocator after migrate them
Status: NEW
Alias: None
Product: ANCK 5.10 Dev
Classification: ANCK
Component: mm (show other bugs) mm
Version: unspecified
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: wangrongwei
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-23 10:56 UTC by jiangxin00
Modified: 2023-10-23 16:35 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jiangxin00 hygon_group 2023-10-23 10:56:05 UTC
Description of problem:

alloc_contig_range() will fail if in-use HugeTLB pages are released
to static HugeTLB pool instead of buddy allocator. Currently, in-use
HugeTLB pages may be released to static HugeTLB pool after migration,
and test_pages_isolated() will fail if the pages are not in buddy.
So, we add function dissolve_static_pool_free_huge_page() to release
the HugeTLB pages in static HugeTLB pool to buddy allocator after
migration.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:
Comment 1 小龙 admin 2023-10-23 16:35:18 UTC
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/2342