From owner-freebsd-current Thu Jan 13 11:32:47 2000 Delivered-To: freebsd-current@freebsd.org Received: from apollo.backplane.com (apollo.backplane.com [216.240.41.2]) by hub.freebsd.org (Postfix) with ESMTP id 093EF14A06 for ; Thu, 13 Jan 2000 11:32:36 -0800 (PST) (envelope-from dillon@apollo.backplane.com) Received: (from dillon@localhost) by apollo.backplane.com (8.9.3/8.9.1) id LAA82477; Thu, 13 Jan 2000 11:32:27 -0800 (PST) (envelope-from dillon) Date: Thu, 13 Jan 2000 11:32:27 -0800 (PST) From: Matthew Dillon Message-Id: <200001131932.LAA82477@apollo.backplane.com> To: Peter Wemm Cc: current@FreeBSD.ORG Subject: Update to ffs_softdep.c 1.50 or better (was Re: softupdates still broken!) References: <20000113152835.30EA01CA0@overcee.netplex.com.au> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG :Your mileage may vary, but the following seems to work for me, for this :part at least. : :Index: sys/contrib/softupdates/ffs_softdep.c :=================================================================== :RCS file: /home/ncvs/src/sys/contrib/softupdates/ffs_softdep.c,v :retrieving revision 1.49 :diff -u -r1.49 ffs_softdep.c :--- sys/contrib/softupdates/ffs_softdep.c 2000/01/13 07:20:01 1.49 :+++ sys/contrib/softupdates/ffs_softdep.c 2000/01/13 15:27:25 :@@ -4563,7 +4563,9 @@ : if (waitfor != MNT_WAIT) : return (0); : bp->b_xflags |= BX_BKGRDWAIT; :+ FREE_LOCK_INTERLOCKED(&lk); : tsleep(&bp->b_xflags, PRIBIO, "getbuf", 0); :+ ACQUIRE_LOCK_INTERLOCKED(&lk); : if (bp->b_xflags & BX_BKGRDINPROG) : panic("getdirtybuf: still writing"); : continue; : : :Cheers, :-Peter :-- :Peter Wemm - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au Kirk has committed this plus the fix to the 'flush 3' panic plus the fix to the 'update failed' panic. Everyone using softupdates should upgrade to sys/contrib/softupdates/ffs_softdep.c 1.50 or better. -Matt Matthew Dillon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message