Date: Fri, 1 Nov 2002 10:42:23 -0800 (PST) From: John Baldwin <jhb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 20528 for review Message-ID: <200211011842.gA1IgNbh034222@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=20528 Change 20528 by jhb@jhb_laptop on 2002/11/01 10:41:49 Fix mtx_trylock() to actually panic if we do a mtx_trylock() on a mutex we own but have not recursed on. Affected files ... .. //depot/projects/smpng/sys/kern/kern_mutex.c#53 edit Differences ... ==== //depot/projects/smpng/sys/kern/kern_mutex.c#53 (text+ko) ==== @@ -462,8 +462,8 @@ * We do not handle recursion in _mtx_trylock; see the * note at the top of the routine. */ - KASSERT(!mtx_recursed(m), - ("mtx_trylock() called on a recursed mutex")); + KASSERT(!mtx_owned(m), + ("mtx_trylock() called on a mutex already owned")); WITNESS_LOCK(&m->mtx_object, opts | LOP_EXCLUSIVE | LOP_TRYLOCK, file, line); } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200211011842.gA1IgNbh034222>