From owner-cvs-all@FreeBSD.ORG Wed Aug 4 20:31:20 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4B38316A4CE; Wed, 4 Aug 2004 20:31:20 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 20F3443D2D; Wed, 4 Aug 2004 20:31:20 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i74KVKOU039026; Wed, 4 Aug 2004 20:31:20 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from jhb@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i74KVKUf039025; Wed, 4 Aug 2004 20:31:20 GMT (envelope-from jhb) Message-Id: <200408042031.i74KVKUf039025@repoman.freebsd.org> From: John Baldwin Date: Wed, 4 Aug 2004 20:31:19 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/i386/i386 pmap.c src/sys/kern subr_witness.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Aug 2004 20:31:20 -0000 jhb 2004-08-04 20:31:19 UTC FreeBSD src repository Modified files: sys/i386/i386 pmap.c sys/kern subr_witness.c Log: Remove a potential deadlock on i386 SMP by changing the lazypmap ipi and spin-wait code to use the same spin mutex (smp_tlb_mtx) as the TLB ipi and spin-wait code snippets so that you can't get into the situation of one CPU doing a TLB shootdown to another CPU that is doing a lazy pmap shootdown each of which are waiting on each other. With this change, only one of the CPUs would do an IPI and spin-wait at a time. Revision Changes Path 1.493 +2 -8 src/sys/i386/i386/pmap.c 1.178 +0 -1 src/sys/kern/subr_witness.c