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

mm: don't play games with pinned pages in clear_page_refs



stable inclusion
from stable-5.10.9
commit 1eea108995a2411d46350bf43e4b316a9f1e30fd
bugzilla: 47457

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

[ Upstream commit 9348b73c ]

Turning a pinned page read-only breaks the pinning after COW.  Don't do it.

The whole "track page soft dirty" state doesn't work with pinned pages
anyway, since the page might be dirtied by the pinning entity without
ever being noticed in the page tables.

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 d1657a2f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment