From owner-p4-projects@FreeBSD.ORG Tue Dec 13 22:03:47 2005 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 9A1D216A422; Tue, 13 Dec 2005 22:03:46 +0000 (GMT) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7364916A41F for ; Tue, 13 Dec 2005 22:03:46 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0657643D4C for ; Tue, 13 Dec 2005 22:03:35 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id jBDM3Zr0089254 for ; Tue, 13 Dec 2005 22:03:35 GMT (envelope-from jhb@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id jBDM3ZKL089251 for perforce@freebsd.org; Tue, 13 Dec 2005 22:03:35 GMT (envelope-from jhb@freebsd.org) Date: Tue, 13 Dec 2005 22:03:35 GMT Message-Id: <200512132203.jBDM3ZKL089251@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to jhb@freebsd.org using -f From: John Baldwin To: Perforce Change Reviews Cc: Subject: PERFORCE change 88149 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Dec 2005 22:03:47 -0000 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);