From aeb0999e2318658e048aa9d7267a5daf061cf046 Mon Sep 17 00:00:00 2001 From: Hoegeun Kwon Date: Thu, 7 Mar 2019 11:18:21 +0900 Subject: [PATCH] LOCAL / mm, page_alloc: Add print page allocation failure reason There is an unclear problem when page alloc failed. So clearly print the cause of the failure. Change-Id: Ie59e1d4e34deabb8733268edfb433754f43766a8 Signed-off-by: Hoegeun Kwon --- mm/page_alloc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 57e63da..39e7f62 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -7812,6 +7812,9 @@ static int __alloc_contig_migrate_range(struct compact_control *cc, while (pfn < end || !list_empty(&cc->migratepages)) { if (fatal_signal_pending(current)) { + pr_err("Fatal signal pending task: %s(%d), %#lx\n", + current->comm, current->pid, + current->pending.signal.sig[0]); ret = -EINTR; break; } -- 2.7.4