Subject: Re: genfs_putpages with PGO_SYNCIO
To: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
From: enami tsugutomo <enami@sm.sony.co.jp>
List: tech-kern
Date: 01/15/2003 11:10:01
YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp> writes:

> --NextPart-20030114211253-0037801
> Content-Type: Text/Plain; charset=us-ascii
> 
> > > I think there was some interaction with NFS related to this.
> > > I don't remember for sure, though.
> > 
> > Yes, with current nfs implementation, simply changing not to pass
> > PGO_SYNCIO will makes nfs code not to use stable write.
> 
> i see, thanks.
> 
> then, how about attached patch?
> - introduce B_STABLE so that nfs doesn't have to (ab)use B_ASYNC to determine
>   if stable write is needed or not.
> - always do async i/o for GOP_WRITE.

Is an error correctly reported?  I guess caller of
VOP_{PUT,GET}PAGES() expects an error to be returned on synchronous
I/O.

enami.