commit | 41b0b0c09e974ff9760db396097169a1891460d2 | [log] [tgz] |
---|---|---|
author | Linus Torvalds <torvalds@linux-foundation.org> | Fri Jan 08 13:13:41 2021 -0800 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Tue Jan 19 18:27:29 2021 +0100 |
tree | c4c38396aa45876cf2a33f2aecc0e1c68f5163fc | |
parent | 847c76518c41ba45ec02742a5d03065ebd4b3c39 [diff] |
mm: fix clear_refs_write locking [ Upstream commit 29a951dfb3c3263c3a0f3bd9f7f2c2cfde4baedb ] 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: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Sasha Levin <sashal@kernel.org>