thp: fix MADV_DONTNEED vs clear soft dirty race
authorKirill A. Shutemov <[email protected]>
Thu, 13 Apr 2017 21:56:28 +0000 (14:56 -0700)
committerLinus Torvalds <[email protected]>
Fri, 14 Apr 2017 01:24:21 +0000 (18:24 -0700)
commit5b7abeae3af8c08c577e599dd0578b9e3ee6687b
treeebbc301c600e4b5ebc3b06e7959ba81117ca4044
parent58ceeb6bec86d9140f9d91d71a710e963523d063
thp: fix MADV_DONTNEED vs clear soft dirty race

Yet another instance of the same race.

Fix is identical to change_huge_pmd().

See "thp: fix MADV_DONTNEED vs.  numa balancing race" for more details.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Kirill A. Shutemov <[email protected]>
Cc: Andrea Arcangeli <[email protected]>
Cc: Hillf Danton <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
fs/proc/task_mmu.c