Date: Tue, 13 Dec 2005 22:03:35 GMT From: John Baldwin <jhb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 88149 for review Message-ID: <200512132203.jBDM3ZKL089251@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=88149 Change 88149 by jhb@jhb_slimer on 2005/12/13 22:03:04 Bah, use Giant since it allows recursion and might even have MTX_CONTESTED set if we are lucky. Affected files ... .. //depot/projects/smpng/sys/modules/crash/crash.c#25 edit Differences ... ==== //depot/projects/smpng/sys/modules/crash/crash.c#25 (text+ko) ==== @@ -87,12 +87,12 @@ ddblock_test(void) { - mtx_lock(&test_mtx); - kdb_enter("test_mtx locked"); - mtx_lock(&test_mtx); - kdb_enter("test_mtx recursed"); - mtx_unlock(&test_mtx); - mtx_unlock(&test_mtx); + mtx_lock(&Giant); + kdb_enter("Giant locked"); + mtx_lock(&Giant); + kdb_enter("Giant recursed"); + mtx_unlock(&Giant); + mtx_unlock(&Giant); sx_slock(&foo); kdb_enter("foo slocked"); sx_sunlock(&foo);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200512132203.jBDM3ZKL089251>