mm: thp: add acquisition/release of a lock to guarantee consistent locking state 78/265078/3
authorSung-hun Kim <sfoon.kim@samsung.com>
Fri, 1 Oct 2021 04:01:01 +0000 (13:01 +0900)
committerSung-hun Kim <sfoon.kim@samsung.com>
Tue, 12 Oct 2021 05:22:20 +0000 (14:22 +0900)
commit40422bc2e6cd14dc3c96f56f4b39937072607cfe
tree567352c36f9cff229279fc1733d82b58b3fa2a0a
parent8e4778dccf771e3f2caa982731b6056ecf8b8779
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