Commit 7dd1e020 authored by junj's avatar junj Committed by Gerrit - the friendly Code Review server
Browse files

Revert "mm, page_alloc: fix core hung in free_pcppages_bulk()"



This reverts commit c1d758070f8aa ("mm, page_alloc: fix core hung in
free_pcppages_bulk()) as it is causing the below crash.

(new_slab) from [<c02d728c>]
(__kmem_cache_create) from [<c1a22468>] (create_boot_cache+0x6c/0x94)
(create_boot_cache) from [<c1a24e38>] (kmem_cache_init+0x74/0x16c)
(kmem_cache_init) from [<c1a009d0>] (start_kernel+0x340/0x680)
(start_kernel) from [<00000000>] (  (null))

Reason being that pages are not being initialized properly as they first
goto pcplists rather than buddy explained in the below call flow:
Start_kernel() -->
	build_all_zonelists()-> pcp's ->batch = 1, ->high = 0,
	mm_init()->mem_init()->free_all_bootmem()--> add order-0 pages to
				pcp lists rather then to buddy.

	alloc_pages() -> This will cause crash as some of the page
			struct are not reliable.

Change-Id: I693fca5c7ef7f1d034355fc761fa623d4e78227d
Signed-off-by: default avatarjunj <junj@codeaurora.org>
[charante@codeaurora.org]: updated the details in commit message
Signed-off-by: default avatarCharan Teja Reddy <charante@codeaurora.org>
parent ff172d5b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment