Description of problem: When user allocates massive amounts of pages using long term gup, __compaction_suitable() routine may return COMPACT_CONTINUE and enter direct reclaim path with high probability. As a result, the high direct reclaim latency makes memory allocation very slow. In the scenario that migration source pages are longterm pinned and these pages cannot be migrated to CMA regions, it is unresonable to return COMPACT_CONTINUE in __compaction_suitable() routine. This patch simply removes ALLOC_CMA in __compaction_suitable() routine in long term gup path to avoid the issue. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/2321