Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 05 Apr 1997 22:56:08 +0200
From:      Tor Egge <Tor.Egge@idi.ntnu.no>
To:        terry@lambert.org
Cc:        dfr@nlsystems.com, dg@root.com, ponds!rivers@dg-rtp.dg.com, freebsd-hackers@freebsd.org
Subject:   Re: kern/3184: vnodes are used after they are freed. (dup alloc?)
Message-ID:  <199704052056.WAA06400@pat.idt.unit.no>
In-Reply-To: Your message of "Sat, 5 Apr 1997 13:03:20 -0700 (MST)"
References:  <199704052003.NAA23438@phaeton.artisoft.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> >   - Let getnewvnode call VOP_ISLOCKED and skip locked nodes on the 
> >     so-called free list. 
> 
> There's no holder, so it isn't locked.  If it were locked via VOP_LOCK,
> then you wouldn'r be having this problem in the first place, since a
> VOP_LOCK will prevent a node from being vclean()'ed (that's the whole
> point of the NFS changes Doug has been trying to deal with, if you
> followed his postings on them).

Wrong. Under some circumstances, the vnode is locked. See the end of vputrele.

- Tor Egge



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199704052056.WAA06400>