Skip to content
Commit 29a951df authored by Linus Torvalds's avatar Linus Torvalds
Browse files

mm: fix clear_refs_write locking



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>
parent 1d94330a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment