From owner-freebsd-fs Mon Mar 18 15:41:13 2002 Delivered-To: freebsd-fs@freebsd.org Received: from obsecurity.dyndns.org (adsl-64-165-226-239.dsl.lsan03.pacbell.net [64.165.226.239]) by hub.freebsd.org (Postfix) with ESMTP id 6D9A437B417; Mon, 18 Mar 2002 15:40:43 -0800 (PST) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 23DF866C39; Mon, 18 Mar 2002 15:40:42 -0800 (PST) Date: Mon, 18 Mar 2002 15:40:42 -0800 From: Kris Kennaway To: Alfred Perlstein Cc: Dag-Erling Smorgrav , Kris Kennaway , current@freebsd.org, fs@freebsd.org Subject: Re: panic: bwrite: buffer is not busy??? Message-ID: <20020318154041.B71020@xor.obsecurity.org> References: <20020317124958.A34008@xor.obsecurity.org> <20020318061739.GB894@elvis.mu.org> <20020318071623.GD894@elvis.mu.org> <20020318010245.A48956@xor.obsecurity.org> <20020318143204.GA688@elvis.mu.org> <20020318223631.GA23014@elvis.mu.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="XF85m9dhOBO43t/C" Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020318223631.GA23014@elvis.mu.org>; from alfred@freebsd.org on Mon, Mar 18, 2002 at 02:36:31PM -0800 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 --XF85m9dhOBO43t/C Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 18, 2002 at 02:36:31PM -0800, Alfred Perlstein wrote: > * Dag-Erling Smorgrav [020318 08:23] wrote: > > Alfred Perlstein writes: > > > I think you're right, I'm pretty sure the fix is basically moving > > > the p->p_fd =3D NULL to after the closef will fix things [...] > >=20 > > There will still be a race... >=20 > Are you sure? :) >=20 > Btw, is there a way to easily reproduce this bug? The panic in tail was triggered by using -f (i.e. kqueue), but it's only happened once on the cluster..err..twice now (just happened again). Without your previous patch several cluster machines were failing several times per hour, in umount. You could probably trigger it by stressing these two code paths. I'll test your latest patch a bit later on. Kris --XF85m9dhOBO43t/C Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE8lnr5Wry0BWjoQKURAg71AJ9eqYJ1NDGfB6OXCgjlBJ4befV9xgCg/bk7 +ftT3teBYQ5jXePLLKLAxrw= =IuGN -----END PGP SIGNATURE----- --XF85m9dhOBO43t/C-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message