diff options
author | Michal Hocko <[email protected]> | 2016-05-23 16:25:33 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2016-05-23 17:04:14 -0700 |
commit | ae7987835643e470cb220e6685bd36d92179ef9c (patch) | |
tree | c28a14bab3078a8080b40e840d987cff9046d317 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 9fbeb5ab59a2b2a09cca2eb68283e7a090d4b98d (diff) |
mm: make vm_munmap killable
Almost all current users of vm_munmap are ignoring the return value and
so they do not handle potential error. This means that some VMAs might
stay behind. This patch doesn't try to solve those potential problems.
Quite contrary it adds a new failure mode by using down_write_killable
in vm_munmap. This should be safer than other failure modes, though,
because the process is guaranteed to die as soon as it leaves the kernel
and exit_mmap will clean the whole address space.
This will help in the OOM conditions when the oom victim might be stuck
waiting for the mmap_sem for write which in turn can block oom_reaper
which relies on the mmap_sem for read to make a forward progress and
reclaim the address space of the victim.
Signed-off-by: Michal Hocko <[email protected]>
Cc: Oleg Nesterov <[email protected]>
Cc: "Kirill A. Shutemov" <[email protected]>
Cc: Konstantin Khlebnikov <[email protected]>
Cc: Andrea Arcangeli <[email protected]>
Cc: Alexander Viro <[email protected]>
Cc: Vlastimil Babka <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions