From owner-freebsd-hackers Wed Aug 8 11:20:12 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from InterJet.elischer.org (c421509-a.pinol1.sfba.home.com [24.7.86.9]) by hub.freebsd.org (Postfix) with ESMTP id 12EF237B40D; Wed, 8 Aug 2001 11:20:05 -0700 (PDT) (envelope-from julian@elischer.org) Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id LAA76431; Wed, 8 Aug 2001 11:17:40 -0700 (PDT) Date: Wed, 8 Aug 2001 11:17:38 -0700 (PDT) From: Julian Elischer To: John Baldwin Cc: hackers@FreeBSD.org Subject: Re: [PATCH] Change lockmgr() to not recursively panic In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG not from me, though you might say why you want this.. On Wed, 8 Aug 2001, John Baldwin wrote: > Any objections to the following patch? > > Index: kern_lock.c > =================================================================== > RCS file: /usr/cvs/src/sys/kern/kern_lock.c,v > retrieving revision 1.46 > diff -u -r1.46 kern_lock.c > --- kern_lock.c 2001/04/28 12:11:01 1.46 > +++ kern_lock.c 2001/08/07 22:06:30 > @@ -242,6 +242,11 @@ > mtx_unlock(interlkp); > } > > + if (panicstr != NULL) { > + mtx_unlock(lkp->lk_interlock); > + return (0); > + } > + > extflags = (flags | lkp->lk_flags) & LK_EXTFLG_MASK; > > switch (flags & LK_TYPE_MASK) { > > > -- > > John Baldwin -- http://www.FreeBSD.org/~jhb/ > PGP Key: http://www.baldwin.cx/~john/pgpkey.asc > "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message