From owner-freebsd-stable Mon Jul 2 20:55:54 2001 Delivered-To: freebsd-stable@freebsd.org Received: from cage.simianscience.com (cage.simianscience.com [64.7.134.1]) by hub.freebsd.org (Postfix) with ESMTP id CE32737B40B for ; Mon, 2 Jul 2001 20:55:49 -0700 (PDT) (envelope-from mike@sentex.net) Received: (from root@localhost) by cage.simianscience.com (8.11.4/8.11.2) id f633tmQ34296; Mon, 2 Jul 2001 23:55:48 -0400 (EDT) (envelope-from mike@sentex.net) Received: from chimp (fcage [192.168.0.2]) by cage.simianscience.com (8.11.4/8.11.2av) with ESMTP id f633thA34288; Mon, 2 Jul 2001 23:55:44 -0400 (EDT) (envelope-from mike@sentex.net) Message-Id: <4.2.2.20010702235346.02089a00@192.168.0.12> X-Sender: mdtancsa@192.168.0.12 X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.2 Date: Mon, 02 Jul 2001 23:55:42 -0400 To: Tor.Egge@fast.no From: Mike Tancsa Subject: Re: HELP! Server crashes since last cvsupdate! Cc: freebsd-stable@freebsd.org In-Reply-To: <200107022355.BAA02807@midten.fast.no> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Virus-Scanned: by AMaViS perl-10 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, Just wondering as both of the patches have to do with mfs, is this lockup that people are running into only triggered by those who use mfs ? ---Mike At 01:55 AM 7/3/2001 +0200, Tor.Egge@fast.no wrote: > > Hello. > > > > Since our last update Friday, 29th June, both SMP machines run > > into a "stuck" condition after a while. This happened now two times > > and I do not know what happens. > >I updated one machine from a 22th June -stable kernel and immediately >got a 'hang' at boot when starting sendmail. Breaking out to ddb >showed the following backtrace. > >db> trace >SMP_breakpoint(c44d4c00,c46d3200,0,c0273d5b,f0f60) at SMP_breakpoint+0x1e >siointr1(c44d4c00,c03c3008,0,e6442f3c,c027258a) at siointr1+0x13d >siointr(c44d4c00) at siointr+0x17 >Xfastintr4(c46d3200,0,e6442f58,c01ac825,e6442f90) at Xfastintr4+0x2a >vop_noislocked(e6442f90,e6442f9c,c01af24b,e6442f90,0) at vop_noislocked+0x19 >vop_defaultop(e6442f90) at vop_defaultop+0x15 >sched_sync(0) at sched_sync+0xaf >fork_trampoline() at fork_trampoline+0x30 > > >The machine hung in lockstatus (called from vop_noislocked) trying to >obtain the interlock of what lockstatus believed to be a struct lock >but wasn't. A suggested fix is enclosed. > >- Tor Egge > >Index: sys/ufs/mfs/mfs_vfsops.c >=================================================================== >RCS file: /home/ncvs/src/sys/ufs/mfs/Attic/mfs_vfsops.c,v >retrieving revision 1.81.2.1 >diff -u -2 -r1.81.2.1 mfs_vfsops.c >--- sys/ufs/mfs/mfs_vfsops.c 2001/06/17 05:05:00 1.81.2.1 >+++ sys/ufs/mfs/mfs_vfsops.c 2001/07/02 23:28:25 >@@ -249,4 +249,5 @@ > addaliasu(devvp, makeudev(253, mfs_minor++)); > devvp->v_data = mfsp; >+ lockinit(&mfsp->mfs_lock, PVFS, "mfslck", 0, LK_NOPAUSE); > mfsp->mfs_baseoff = args.base; > mfsp->mfs_size = args.size; >Index: sys/ufs/mfs/mfsnode.h >=================================================================== >RCS file: /home/ncvs/src/sys/ufs/mfs/Attic/mfsnode.h,v >retrieving revision 1.12 >diff -u -2 -r1.12 mfsnode.h >--- sys/ufs/mfs/mfsnode.h 1999/08/28 00:52:26 1.12 >+++ sys/ufs/mfs/mfsnode.h 2001/07/02 23:28:25 >@@ -43,4 +43,5 @@ > > struct mfsnode { >+ struct lock mfs_lock; > struct vnode *mfs_vnode; /* vnode associated with this > mfsnode */ > caddr_t mfs_baseoff; /* base of file system in memory */ -------------------------------------------------------------------- Mike Tancsa, tel +1 519 651 3400 Network Administration, mike@sentex.net Sentex Communications www.sentex.net Cambridge, Ontario Canada www.sentex.net/mike To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message