Date: Mon, 14 Aug 2006 18:27:38 GMT From: John Baldwin <jhb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 103886 for review Message-ID: <200608141827.k7EIRc6f016061@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=103886 Change 103886 by jhb@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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200608141827.k7EIRc6f016061>