mm: thp: add acquisition/release of a lock to guarantee consistent locking state
authorSung-hun Kim <sfoon.kim@samsung.com>
Fri, 1 Oct 2021 04:01:01 +0000 (13:01 +0900)
committerHoegeun Kwon <hoegeun.kwon@samsung.com>
Mon, 7 Feb 2022 08:01:41 +0000 (17:01 +0900)
commitba78f1fc86a7bdfd875bbdafd4b66cac58638809
treeb3be8714f148eb2bfa872ee9e170d572e1b840ea
parent66772b6c204468a1a84f1639875d39aa7b2fdfff
mm: thp: add acquisition/release of a lock to guarantee consistent locking state

arm64_wp_huge_pte should acquire a lock before return
to keep the lock semantics of the caller.
To guarantee this, add a new lock acquisition and a
new lock release statements in proper positions.

Change-Id: I81fb8afc37f54bce83f353ca6b6894e70ef86934
Signed-off-by: Sung-hun Kim <sfoon.kim@samsung.com>
arch/arm64/mm/huge_memory.c
mm/memory.c