Message ID | 20200814030014.ODl4NLbRv%akpm@linux-foundation.org |
---|---|
State | New |
Headers | show |
Series | + mm-page_alloc-fix-core-hung-in-free_pcppages_bulk.patch added to -mm tree | expand |
--- a/mm/page_alloc.c~mm-page_alloc-fix-core-hung-in-free_pcppages_bulk +++ a/mm/page_alloc.c @@ -1301,6 +1301,11 @@ static void free_pcppages_bulk(struct zo struct page *page, *tmp; LIST_HEAD(head); + /* + * Ensure proper count is passed which otherwise would stuck in the + * below while (list_empty(list)) loop. + */ + count = min(pcp->count, count); while (count) { struct list_head *list;