From owner-p4-projects Mon Dec 2 14:18:20 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 53FA437B404; Mon, 2 Dec 2002 14:18:19 -0800 (PST) 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 DCC1337B401 for ; Mon, 2 Dec 2002 14:18:18 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 83CCD43EB2 for ; Mon, 2 Dec 2002 14:18:18 -0800 (PST) (envelope-from jhb@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id gB2MECmV078030 for ; Mon, 2 Dec 2002 14:14:12 -0800 (PST) (envelope-from jhb@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id gB2MEB9k078027 for perforce@freebsd.org; Mon, 2 Dec 2002 14:14:11 -0800 (PST) Date: Mon, 2 Dec 2002 14:14:11 -0800 (PST) Message-Id: <200212022214.gB2MEB9k078027@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to jhb@freebsd.org using -f From: John Baldwin Subject: PERFORCE change 21823 for review To: Perforce Change Reviews Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG http://perforce.freebsd.org/chv.cgi?CH=21823 Change 21823 by jhb@jhb_laptop on 2002/12/02 14:13:46 Whine if an ithread tries to block with locks held. Basically, whine if a handler returns with locks held when it shouldn't have. Affected files ... .. //depot/projects/smpng/sys/kern/kern_intr.c#24 edit Differences ... ==== //depot/projects/smpng/sys/kern/kern_intr.c#24 (text+ko) ==== @@ -543,6 +543,7 @@ * lock. This may take a while and it_need may get * set again, so we have to check it again. */ + WITNESS_WARN(WARN_PANIC, NULL, "suspending ithread"); mtx_assert(&Giant, MA_NOTOWNED); mtx_lock_spin(&sched_lock); if (!ithd->it_need) { To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message