Subject: Re: p_flag in struct proc: int -> uint64_t
To: Jason Thorpe <thorpej@shagadelic.org>
From: Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de>
List: tech-kern
Date: 10/10/2006 17:53:01
On Tue, Oct 10, 2006 at 08:20:38AM -0700, Jason Thorpe wrote:
> 
> On Oct 10, 2006, at 2:46 AM, Juergen Hannken-Illjes wrote:
> 
> >On Mon, Oct 09, 2006 at 03:45:28PM -0700, Jason Thorpe wrote:
> >>
> >>On Oct 9, 2006, at 1:43 AM, Juergen Hannken-Illjes wrote:
> >>
> >>>The latter.  Call xxx_set() and xxx_get() with locks held.
> >>
> >>For setspecific, I could add a setspecific_nowait, but I'm concerned
> >>about what the failure mode is supposed to be if it were to fail...
> >>would you unwind your state, and try to set the data some other way,
> >>or would you fail the operation in some fashion?
> >
> >I will fail like this:
> 
> Right, but what are the implications of fstrans_start() failing?  Is  
> it possible for you to unwind and recover from THAT situation, and  
> restart the transaction?

At the moment it is used only for genfs_putpages() when it has either
PGO_SYNCIO|PGO_CLEANIT set or is from pagedaemon.  The error gets up
to the caller of genfs_putpages().

-- 
Juergen Hannken-Illjes - hannken@eis.cs.tu-bs.de - TU Braunschweig (Germany)