From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [PATCH 11 of 24] the oom schedule timeout isn't needed with the VM_is_OOM logic Message-Id: In-Reply-To: Date: Wed, 22 Aug 2007 14:48:58 +0200 From: Andrea Arcangeli Sender: owner-linux-mm@kvack.org Return-Path: To: linux-mm@kvack.org Cc: David Rientjes List-ID: # HG changeset patch # User Andrea Arcangeli # Date 1187778125 -7200 # Node ID adf88d0ba0d17beaceee47f7b8e0acbd97ddc320 # Parent edb3af3e0d4f2c083c8ddd9857073a3c8393ab8e the oom schedule timeout isn't needed with the VM_is_OOM logic VM_is_OOM whole point is to give a proper time to the TIF_MEMDIE task in order to exit. Signed-off-by: Andrea Arcangeli diff --git a/mm/oom_kill.c b/mm/oom_kill.c --- a/mm/oom_kill.c +++ b/mm/oom_kill.c @@ -469,12 +469,5 @@ out: read_unlock(&tasklist_lock); cpuset_unlock(); - /* - * Give "p" a good chance of killing itself before we - * retry to allocate memory unless "p" is current - */ - if (!test_thread_flag(TIF_MEMDIE)) - schedule_timeout_uninterruptible(1); - up(&OOM_lock); } -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org