From owner-freebsd-fs Wed Apr 4 8:51: 1 2001 Delivered-To: freebsd-fs@freebsd.org Received: from neko.cts.com (neko.cts.com [209.68.192.150]) by hub.freebsd.org (Postfix) with ESMTP id DD81637B718 for ; Wed, 4 Apr 2001 08:50:57 -0700 (PDT) (envelope-from ctsmhn@cts.com) Received: from CARTMAN (cartman.cts.com [205.163.23.192]) by neko.cts.com (8.9.3/8.9.3) with SMTP id IAA09717; Wed, 4 Apr 2001 08:50:48 -0700 (PDT) From: "Matthew H. North" To: "Bruce Evans" Cc: Subject: RE: Reproducible kernel panics in ffs_valloc: dup_alloc Date: Wed, 4 Apr 2001 08:54:47 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Importance: Normal Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Thanks for the help. However, from my understanding of C, that patch does nothing (except add an extra instruction or two to the kernel). It simply adds an extra OR condition, that is always false, to an if statement. if CONDITION then do something is exactly the same as if FALSE or CONDITION then do something Perhaps I'm missing something. If so, please let me know. I am interested in your comment about, "...longstanding bugs in vfs_bio_clrbuf()...." Is there somewhere I can find a history of these bugs and patches? - Matt | -----Original Message----- | From: Bruce Evans [mailto:bde@zeta.org.au] | Sent: Wednesday, April 04, 2001 5:41 AM | To: Matthew H. North | Cc: freebsd-fs@FreeBSD.ORG | Subject: Re: Reproducible kernel panics in ffs_valloc: dup_alloc | | | On Tue, 3 Apr 2001, Matthew H. North wrote: | | > After spending hours trouble-shooting this and looking for | similar problems | > and solutions in the bug archive, google, etc., I'm running out | of ideas. | > | > I am responsible for maintaining a squid cache system for my company. | > Currently, the system is: PIII/800MHz, 768MB RAM (1GB cache), FreeBSD | > 4.2-STABLE, Squid-2.3STABLE4 (compiled locally instead of using | the FreeBSD | > port). Boot drive and Squid cache drives are SCSI-LVD running | at 80MB/s off | > of the Adaptec 29160N card. Softupdates are not enabled on *any* of the | > drives in this system. | > | > Unfortunately this system has been plagued by kernel panics for | a number of | > weeks now. I originally assumed there was some sort of | hardware problem, | > but I've since replaced every last piece of hardware: MB, RAM, CPU, SCSI | > card, SCSI cable, SCSI drives, video card, NICs. Every last piece of | > hardware has been replaced, yet the kernel panics persists on a fairly | > regular basis. | | I wonder if the longstanding bugs in vfs_bio_clrbuf() could cause this | problem (rev.1.188 of vfs_bio.c fixed only some of the bugs). Quick fix: | | Index: vfs_bio.c | =================================================================== | RCS file: /home/ncvs/src/sys/kern/vfs_bio.c,v | retrieving revision 1.273 | diff -u -2 -r1.273 vfs_bio.c | --- vfs_bio.c 2001/02/28 04:13:07 1.273 | +++ vfs_bio.c 2001/04/04 12:35:26 | @@ -3088,5 +3088,5 @@ | int i, mask = 0; | caddr_t sa, ea; | - if ((bp->b_flags & (B_VMIO | B_MALLOC)) == B_VMIO) { | + if (0 || (bp->b_flags & (B_VMIO | B_MALLOC)) == B_VMIO) { | bp->b_flags &= ~B_INVAL; | bp->b_ioflags &= ~BIO_ERROR; | | To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message