Date: Wed, 21 Sep 2005 11:05:33 +0300 From: Andrey Simonenko <simon@comsys.ntu-kpi.kiev.ua> To: Sebastien <sebastien.bourdeauducq@gmail.com> Cc: freebsd-hackers@freebsd.org Subject: Re: Filesystem access from a KLD causes "vrele: negative ref cnt" panic Message-ID: <20050921080533.GA255@pm514-9.comsys.ntu-kpi.kiev.ua> In-Reply-To: <200509201949.53951.sebastien.bourdeauducq@gmail.com> References: <200509201949.53951.sebastien.bourdeauducq@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Sep 20, 2005 at 07:49:53PM +0200, Sebastien wrote: > > I have a random panic "vrele: negative ref cnt" when I shutdown the system. Am > I double-freeing something in my code ? The fact that the panic is caused > randomly suggests there is a synchronization problem - but the above code is > always running under the protection of the Giant mutex. [ please don't write such long lines ] Should not rootvnode get reference, when fd_rdir or fd_cdir begins to point to it? Try to VREF() it. Which vnode gets negative reference counter?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050921080533.GA255>