Date: Thu, 17 Apr 2003 08:36:06 -0700 (PDT) From: John Baldwin <jhb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 29123 for review Message-ID: <200304171536.h3HFa6Ir028120@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=29123 Change 29123 by jhb@jhb_laptop on 2003/04/17 08:35:36 This assert actually triggered while syncing buffers on shutdown, so make it into a printf instead of a panic so I don't lose my buffers. Affected files ... .. //depot/projects/smpng/sys/kern/kern_lock.c#25 edit Differences ... ==== //depot/projects/smpng/sys/kern/kern_lock.c#25 (text+ko) ==== @@ -229,10 +229,8 @@ error = 0; if (td == NULL) thr = LK_KERNPROC; - else { - MPASS(td == curthread); + else thr = td; - } if ((flags & LK_INTERNAL) == 0) mtx_lock(lkp->lk_interlock); @@ -267,6 +265,12 @@ */ if (lkp->lk_lockholder != thr) { lockflags = LK_HAVE_EXCL; +#ifdef INVARIANTS + if (td != NULL && td != curthread) + printf("%s: weird thread pid %d (%s)\n", + __func__, td->td_proc->p_pid, + td->td_proc->p_comm); +#endif if (td != NULL && !(td->td_flags & TDF_DEADLKTREAT)) lockflags |= LK_WANT_EXCL | LK_WANT_UPGRADE; error = acquire(&lkp, extflags, lockflags);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200304171536.h3HFa6Ir028120>
