Date: Wed, 8 Aug 2001 11:17:38 -0700 (PDT) From: Julian Elischer <julian@elischer.org> To: John Baldwin <jhb@FreeBSD.org> Cc: hackers@FreeBSD.org Subject: Re: [PATCH] Change lockmgr() to not recursively panic Message-ID: <Pine.BSF.4.21.0108081117120.76405-100000@InterJet.elischer.org> In-Reply-To: <XFMail.010808075359.jhb@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <jhb@FreeBSD.org> -- 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0108081117120.76405-100000>