PERFORCE change 103886 for review
John Baldwin
jhb at FreeBSD.org
Mon Aug 14 18:27:39 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=103886
Change 103886 by jhb at jhb_mutex on 2006/08/14 18:26:42
Use shared locks for the second lockers in the mixed test.
Affected files ...
.. //depot/projects/smpng/sys/modules/crash2/crash2.c#11 edit
Differences ...
==== //depot/projects/smpng/sys/modules/crash2/crash2.c#11 (text+ko) ====
@@ -112,9 +112,9 @@
lockmgr(locks[thread % 4], LK_EXCLUSIVE, NULL, curthread);
tsleep(sxs, 0, "slp_dead", hz/10);
if (thread % 2)
- lockmgr(locks[(thread + 1) % 4], LK_EXCLUSIVE, NULL, curthread);
+ lockmgr(locks[(thread + 1) % 4], LK_SHARED, NULL, curthread);
else
- sx_xlock(sxs[(thread + 1) % 4]);
+ sx_slock(sxs[(thread + 1) % 4]);
}
CRASH2_EVENT("sx and lockmgr cycle", sleep_deadlock, sleep_deadlock,
sleep_deadlock, sleep_deadlock);
More information about the p4-projects
mailing list