Subject: Re: CVS commit: src/sys/miscfs
To: None <wrstuden@netbsd.org>
From: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
List: source-changes
Date: 06/17/2004 08:56:06
hi,

> Module Name:	src
> Committed By:	wrstuden
> Date:		Wed Jun 16 17:59:53 UTC 2004
> 
> Modified Files:
> 	src/sys/miscfs/genfs: layer_vnops.c
> 	src/sys/miscfs/umapfs: umap_vnops.c
> 
> Log Message:
> Make sure we actually locked the parent vnode before we clear
> PDIRUNLOCK. The whole reason we have the flag is to note (rare)
> cases where we are supposed to have the parent directory locked
> but don't. Permits error handling code to know what to do with
> the parrent vnode (vrele() vs vput()).

how can vn_lock(LK_EXCLUSIVE | LK_RETRY) fail in this case?

YAMAMOTO Takashi