Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 12 Apr 2001 13:09:33 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 12 Apr 2001 13:09:24 -0400 Received: from dfmail.f-secure.com ([194.252.6.39]:47752 "HELO dfmail.f-secure.com") by vger.kernel.org with SMTP id ; Thu, 12 Apr 2001 13:09:19 -0400 Date: Thu, 12 Apr 2001 20:18:24 +0200 (MET DST) From: Szabolcs Szakacsits To: Marcelo Tosatti cc: Rik van Riel , Alan Cox , Hugh Dickins , , Subject: Re: scheduler went mad? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 12 Apr 2001, Marcelo Tosatti wrote: > This patch is broken, ignore it. > Just removing wakeup_bdflush() is indeed correct. > We already wakeup bdflush at try_to_free_buffers() anyway. I still feel a bit unconfortable about processes looping forever in __alloc_pages and because of this oom_killer also can't be moved to page fault handler where I think its place should be. I'm using the patch below. Szaka --- mm/page_alloc.c.orig Sat Mar 31 19:07:22 2001 +++ mm/page_alloc.c Mon Apr 2 21:05:31 2001 @@ -453,8 +453,12 @@ */ if (gfp_mask & __GFP_WAIT) { memory_pressure++; - try_to_free_pages(gfp_mask); - wakeup_bdflush(0); + if (!try_to_free_pages(gfp_mask)); + return NULL; goto try_again; } } - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/