PERFORCE change 88149 for review
John Baldwin
jhb at FreeBSD.org
Tue Dec 13 14:03:47 PST 2005
http://perforce.freebsd.org/chv.cgi?CH=88149
Change 88149 by jhb at 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);
More information about the p4-projects
mailing list