]> git.baikalelectronics.ru Git - kernel.git/commit
mm: fix clear_refs_write locking
authorLinus Torvalds <torvalds@linux-foundation.org>
Fri, 8 Jan 2021 21:13:41 +0000 (13:13 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 16 Jan 2021 18:46:39 +0000 (10:46 -0800)
commit95e9be78bb2ee5b2e36a98e050774d695b28adb8
tree04043448c9ada73ea98a6b573520e4b0c9ef8e14
parent9e863433f27b2c498f1bde7ed189af4e6bbfc43c
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: Linus Torvalds <torvalds@linux-foundation.org>
fs/proc/task_mmu.c