Subject: Re: L_COWINPROGRESS
To: None <tech-kern@netbsd.org>
From: Juergen Hannken-Illjes <hannken@netbsd.org>
List: tech-kern
Date: 07/11/2004 22:56:33
On Mon, Jul 12, 2004 at 05:35:52AM +0900, YAMAMOTO Takashi wrote:
> hi,
> 
> what's exactly L_COWINPROGRESS for?

It avoids recursive calls of ffs_copyonwrite() where getnewbuf()
writes back dirty buffers to reuse them.

> i don't think it makes much sense because the subsequent pool_get()
> in getnewbuf() can fail even if buf_lotsfree() returns 1 due to
> L_COWINPROGRESS.

So we should skip the bremfree(bp) part on L_COWINPROGRESS. Will look
into this one.

> besides, i can't believe that lwp is a right place to put
> a filesystem specific flag.

-- 
Jürgen Hannken-Illjes - hannken@netbsd.org