Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit ff56a975 authored by Charan Teja Reddy's avatar Charan Teja Reddy
Browse files

mem-offline: disallow page migration to isolated page blocks



The isolated page blocks shouldn't be used as migration destination.

Consider the below scenario:
Pa					Pb
				__offline_pages()
				  isolate the page blocks
migrate the page to
the isolated page block
				offline the memory block

				online the same memory block
				which clears the page refcount
				and try to put the page to buddy

In the above scenario, Pa is migrating the page to the page block on
what Pb is trying to offline after the page block is isolated.

This can cause the issues like wrong page contents, memory offline
failures.

Change-Id: Ibceaa17ed34e4c7f38d555bc82189d7eb212cfcc
Signed-off-by: default avatarCharan Teja Reddy <charante@codeaurora.org>
parent fa889c3a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment