aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorMichal Hocko <[email protected]>2016-05-23 16:25:45 -0700
committerLinus Torvalds <[email protected]>2016-05-23 17:04:14 -0700
commit4e80153a6044bcd9a7d65c1ec4b1d1c44ba0ed6c (patch)
tree003fcb1ecafae6143e8e159517b6905f3442d5ee /tools/perf/scripts/python/export-to-postgresql.py
parent2d6c928241add2848e4eebfce407e95164229976 (diff)
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 <[email protected]> Acked-by: Oleg Nesterov <[email protected]> Acked-by: Vlastimil Babka <[email protected]> Cc: Petr Cermak <[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