diff options
author | Michal Hocko <[email protected]> | 2016-05-23 16:25:57 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2016-05-23 17:04:14 -0700 |
commit | 4136c26b65d12d0c5ef58b7d30dc0aa2a11ed491 (patch) | |
tree | acd092b56a44a3f87027e27ac93900ce4fa560b1 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 69048176078adda4087a648c9b1812ddd800fad1 (diff) |
coredump: make coredump_wait wait for mmap_sem for write killable
coredump_wait waits for mmap_sem for write currently which can prevent
oom_reaper to reclaim the oom victims address space asynchronously
because that requires mmap_sem for read. This might happen if the oom
victim is multi threaded and some thread(s) is holding mmap_sem for read
(e.g. page fault) and it is stuck in the page allocator while other
thread(s) reached coredump_wait already.
This patch simply uses down_write_killable and bails out with EINTR if
the lock got interrupted by the fatal signal. do_coredump will return
right away and do_group_exit will take care to zap the whole thread
group.
Signed-off-by: Michal Hocko <[email protected]>
Acked-by: Oleg Nesterov <[email protected]>
Acked-by: 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