From owner-freebsd-fs Mon Mar 18 6:32:11 2002 Delivered-To: freebsd-fs@freebsd.org Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by hub.freebsd.org (Postfix) with ESMTP id 9C4A237B400; Mon, 18 Mar 2002 06:32:05 -0800 (PST) Received: by elvis.mu.org (Postfix, from userid 1192) id DFEA3AE2AB; Mon, 18 Mar 2002 06:32:04 -0800 (PST) Date: Mon, 18 Mar 2002 06:32:04 -0800 From: Alfred Perlstein To: Dag-Erling Smorgrav Cc: Kris Kennaway , current@freebsd.org, fs@freebsd.org Subject: Re: panic: bwrite: buffer is not busy??? Message-ID: <20020318143204.GA688@elvis.mu.org> References: <20020317124958.A34008@xor.obsecurity.org> <20020318061739.GB894@elvis.mu.org> <20020318071623.GD894@elvis.mu.org> <20020318010245.A48956@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.27i Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org * Dag-Erling Smorgrav [020318 01:07] wrote: > Kris Kennaway writes: > > With the corrected version of that patch (and a patch from Tor to fix > > VM deadlocks in green's commit) I got this panic. > > ...which is completely uninteresting, actually, except as proof that > the patch (and my initial analysis) is incorrect. With the patch > applied, tail(1) will *always* cause this panic; it is a direct and > inevitable consequence of the patch clearing p->p_fd before calling > closef(). I think you're right, I'm pretty sure the fix is basically moving the p->p_fd = NULL to after the closef will fix things, but to get it right you need to lock the FILEDESC properly, I'll have another patch later today. Sorry for taking so long to look at this. -- -Alfred Perlstein [alfred@freebsd.org] 'Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom.' Tax deductible donations for FreeBSD: http://www.freebsdfoundation.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message