lkml.org 
[lkml]   [2000]   [Dec]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: ANNOUNCE: Linux Kernel ORB: kORBit
On Tue, 19 Dec 2000, Andrea Arcangeli wrote:

> On Mon, Dec 18, 2000 at 10:57:44PM +0100, Mikulas Patocka wrote:
> > You have small posibility that interrupt will eat up memory - interrupt in
> > process that has PF_MEMALLOC. Patch:
>
> this is not the point of getblk, to fix the getblk deadlock the only way is to
> implement a fail path in each caller and allow getblk to return NULL (as every
> other memory allocation function can do).

Failing getblk would likely introduce filesystem corruption. Look at
getblk in 2.0 - when allocating new page fails it tries to reuse existing
clean buffers or wakes up bdflush and waits until it writes them. This is
the right thing to do.

Mikulas

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:52    [W:0.079 / U:0.188 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site