X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=mm%2Foom_kill.c;h=78747afad6b0d6e2b2a2e0c08075e9911c8b85c6;hb=7cafae52381395d24b83996eca7a7b53ab6a8827;hp=8123fad5a485dbe90095f251a440bd83bacc10ab;hpb=cf70a6f264f6e1a4c06553699159d94996b2f916;p=linux-2.6 diff --git a/mm/oom_kill.c b/mm/oom_kill.c index 8123fad5a4..78747afad6 100644 --- a/mm/oom_kill.c +++ b/mm/oom_kill.c @@ -302,7 +302,7 @@ void out_of_memory(struct zonelist *zonelist, gfp_t gfp_mask, int order) { struct mm_struct *mm = NULL; task_t *p; - unsigned long points; + unsigned long points = 0; if (printk_ratelimit()) { printk("oom-killer: gfp_mask=0x%x, order=%d\n", @@ -355,6 +355,7 @@ retry: } out: + read_unlock(&tasklist_lock); cpuset_unlock(); if (mm) mmput(mm); @@ -364,5 +365,5 @@ out: * retry to allocate memory unless "p" is current */ if (!test_thread_flag(TIF_MEMDIE)) - schedule_timeout_interruptible(1); + schedule_timeout_uninterruptible(1); }