OSDN Git Service

mm: process reclaim: skip locked vmas
authorVinayak Menon <vinmenon@codeaurora.org>
Fri, 26 May 2017 10:59:55 +0000 (16:29 +0530)
committerGerrit - the friendly Code Review server <code-review@localhost>
Thu, 1 Jun 2017 06:37:47 +0000 (23:37 -0700)
commit7cf864f5515b15e7aba6b48d3799949fb62065eb
treefbfb0358632eda2fa0c6400b1a92ba0e773d3598
parenta5706c4fdac1a427fac7b30a49912a1d9d148cb9
mm: process reclaim: skip locked vmas

Skip VMA_LOCKED vmas from being reclaimed. Not doing so results
in pages in unevictable lrus to be passed for reclaim which can
cause issues. In one such reported problem, the trylock_page in
shrink_page_list fails and reclaim path decides to keep the page
and hits VM_BUG_ON_PAGE since PageUnevictable is set.

Change-Id: I58947faeb5226cf8578541d7fdcd474a24f8c40f
Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
fs/proc/task_mmu.c