diff options
author | Tetsuo Handa <[email protected]> | 2017-08-31 16:15:20 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2017-08-31 16:33:14 -0700 |
commit | e746bf730a76fe53b82c9e6b6da72d58e9ae3565 (patch) | |
tree | 5d0170fe8a0bbfbbf4940a2c452ce0f505d14ade /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 42ff72cf27027fa28dd79acabe01d9196f1480a7 (diff) |
mm,page_alloc: don't call __node_reclaim() with oom_lock held.
We are doing a last second memory allocation attempt before calling
out_of_memory(). But since slab shrinker functions might indirectly
wait for other thread's __GFP_DIRECT_RECLAIM && !__GFP_NORETRY memory
allocations via sleeping locks, calling slab shrinker functions from
node_reclaim() from get_page_from_freelist() with oom_lock held has
possibility of deadlock. Therefore, make sure that last second memory
allocation attempt does not call slab shrinker functions.
Link: http://lkml.kernel.org/r/1503577106-9196-1-git-send-email-penguin-kernel@I-love.SAKURA.ne.jp
Signed-off-by: Tetsuo Handa <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Cc: Mel Gorman <[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