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

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

soc: qcom: mem-offline: isolate freepages in pageblock boundaries



Migrate isolate of a pageblock is being checked only at the pageblock
boundary pages thus the isolation of freepages should happen on that
pageblock which otherwise can still cause the isolation of freepages on
an isolated pageblock.

Consider the below case:

Pa					       Pb

check the pageblock
isolation

zone_lock
Isolate the SWAP_CLUSTER_MAX pages
Zone_unlock
					zone_lock
					Set Migrate isolate on the
					same page block that Pa is
					operating on.
					zone_unlock
zone_lock
Continue the isolate on the same
page block that was set Migrate
isolate by Pb which is an error.

Change-Id: I1504b031f434fb65ebb11e1472b73e9d34e388b8
Fixes: ff56a975 ("mem-offline: disallow page migration to isolated page blocks")
Signed-off-by: default avatarCharan Teja Reddy <charante@codeaurora.org>
parent 1ea05851
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