From owner-freebsd-hackers@FreeBSD.ORG Fri Sep 30 16:46:34 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 77CE316A41F for ; Fri, 30 Sep 2005 16:46:34 +0000 (GMT) (envelope-from sebastien.bourdeauducq@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 08EF643D48 for ; Fri, 30 Sep 2005 16:46:33 +0000 (GMT) (envelope-from sebastien.bourdeauducq@gmail.com) Received: by xproxy.gmail.com with SMTP id t4so241548wxc for ; Fri, 30 Sep 2005 09:46:33 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:from:to:subject:date:user-agent:cc:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=i3PycN0cQyanYPmZIoGQjI+bFBk4cfudm1SYjG0gzCLPgdDaKTeC3feKQwesWcVgASI3kqz8r9NiypE/nFHl11nc3mc59BKap/VInmRI3sB8F1/12evQZxOTMMD+5UBCUrg9wNzdMqvB7ilIiwAWCagIyA6gPLM/m9ZiTnqeyzc= Received: by 10.70.30.9 with SMTP id d9mr966820wxd; Fri, 30 Sep 2005 09:46:33 -0700 (PDT) Received: from ?10.0.1.32? ( [82.231.252.157]) by mx.gmail.com with ESMTP id i11sm1148444wxd.2005.09.30.09.46.30; Fri, 30 Sep 2005 09:46:31 -0700 (PDT) From: Sebastien To: Andrey Simonenko Date: Fri, 30 Sep 2005 18:48:19 +0200 User-Agent: KMail/1.8 References: <200509201949.53951.sebastien.bourdeauducq@gmail.com> <200509241706.47995.sebastien.bourdeauducq@gmail.com> <20050926084550.GA444@pm514-9.comsys.ntu-kpi.kiev.ua> In-Reply-To: <20050926084550.GA444@pm514-9.comsys.ntu-kpi.kiev.ua> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200509301848.20284.sebastien.bourdeauducq@gmail.com> Cc: freebsd-hackers@freebsd.org Subject: Re: Filesystem access from a KLD causes "vrele: negative ref cnt" panic X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Sep 2005 16:46:34 -0000 > It is hard to say something not seeing and understanding the > complete source code. Well, it's a very simple module : http://lekernel.lya-fr.com/firmwareagent_en.html > 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. Ok, so it should be VREF'd twice - it works now :) Thanks, Sebastien