Commit d1657a2f authored by Linus Torvalds's avatar Linus Torvalds Committed by Zheng Zengkai
Browse files

mm: fix clear_refs_write locking



stable inclusion
from stable-5.10.9
commit 41b0b0c09e974ff9760db396097169a1891460d2
bugzilla: 47457

--------------------------------

[ Upstream commit 29a951df ]

Turning page table entries read-only requires the mmap_sem held for
writing.

So stop doing the odd games with turning things from read locks to write
locks and back.  Just get the write lock.

Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>
Acked-by: default avatarXie XiuQi <xiexiuqi@huawei.com>
parent 64f861fb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment