Date: Wed, 08 Aug 2001 07:53:59 -0700 (PDT) From: John Baldwin <jhb@FreeBSD.org> To: hackers@FreeBSD.org Subject: [PATCH] Change lockmgr() to not recursively panic Message-ID: <XFMail.010808075359.jhb@FreeBSD.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.010808075359.jhb>