diff options
author | Michal Hocko <mhocko@suse.com> | 2016-05-24 01:25:45 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-05-24 02:04:14 +0200 |
commit | 4e80153a6044bcd9a7d65c1ec4b1d1c44ba0ed6c (patch) | |
tree | 003fcb1ecafae6143e8e159517b6905f3442d5ee /Documentation/w1 | |
parent | mm: make vm_brk killable (diff) | |
download | linux-4e80153a6044bcd9a7d65c1ec4b1d1c44ba0ed6c.tar.xz linux-4e80153a6044bcd9a7d65c1ec4b1d1c44ba0ed6c.zip |
mm, proc: make clear_refs killable
CLEAR_REFS_MM_HIWATER_RSS and CLEAR_REFS_SOFT_DIRTY are relying on
mmap_sem for write. If the waiting task gets killed by the oom killer
and it would operate on the current's mm it would block oom_reaper from
asynchronous address space reclaim and reduce the chances of timely OOM
resolving. Wait for the lock in the killable mode and return with EINTR
if the task got killed while waiting. This will also expedite the
return to the userspace and do_exit even if the mm is remote.
Signed-off-by: Michal Hocko <mhocko@suse.com>
Acked-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Cc: Petr Cermak <petrcermak@chromium.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation/w1')
0 files changed, 0 insertions, 0 deletions