Filesystem access from a KLD causes "vrele: negative ref cnt" panic

Andrey Simonenko simon at comsys.ntu-kpi.kiev.ua
Mon Sep 26 01:48:42 PDT 2005


On Sat, Sep 24, 2005 at 05:06:47PM +0200, Sebastien wrote:
> 
> > Should not rootvnode get reference, when fd_rdir or fd_cdir
> > begins to point to it?  Try to VREF() it. 
> 
> No change.
> 

It is hard to say something not seeing and understanding the
complete source code.  But since fdinit() which is called from
fork1() and fdfree() which is called from exit1() get and release
reference on vnodes fd_cdir and fd_rdir point to, you need to
follow this semantics.


More information about the freebsd-hackers mailing list