Subject: Re: genfs_getpages and MAX_READ_AHEAD
To: None <petrov@netbsd.org>
From: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
List: tech-kern
Date: 06/11/2003 16:51:33
hi,

> What exactly should I do to get that assert launched? It seems that
> there are plenty of arguments checks, and it also has MAX_READ_AHEAD
> panic in there. So what's situation is resolved with this patch?

nfsrv_read with proper file offset and filesystem block size.

> > i agree that having a limit of size to alloca and using malloc for big ones
> > (as Jason suggested) is reasonable.
> 
> If you're going to take that path, i'd suggest having fixed-sized
> array for that limit, and malloc/free for larger one. alloca will
> be just extra cycles.

ok.

YAMAMOTO Takashi