X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=mm%2Foom_kill.c;h=59666d905f1997521c89f4a7b1a492df4414be0e;hb=f45727d52d1581e9ff4df9d1a12a60789ad2d1eb;hp=4bbb1cb10495ea486db83868055762888835c8b3;hpb=79befd0c08c4766f8fa27e37ac2a70e40840a56a;p=linux-2.6 diff --git a/mm/oom_kill.c b/mm/oom_kill.c index 4bbb1cb104..59666d905f 100644 --- a/mm/oom_kill.c +++ b/mm/oom_kill.c @@ -258,6 +258,10 @@ void out_of_memory(unsigned int __nocast gfp_mask) struct mm_struct *mm = NULL; task_t * p; + printk("oom-killer: gfp_mask=0x%x\n", gfp_mask); + /* print memory stats */ + show_mem(); + read_lock(&tasklist_lock); retry: p = select_bad_process(); @@ -268,12 +272,9 @@ retry: /* Found nothing?!?! Either we hang forever, or we panic. */ if (!p) { read_unlock(&tasklist_lock); - show_free_areas(); panic("Out of memory and no killable processes...\n"); } - printk("oom-killer: gfp_mask=0x%x\n", gfp_mask); - show_free_areas(); mm = oom_kill_process(p); if (!mm) goto retry;