From owner-cvs-all Wed Mar 28 8:11:57 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 996CD37B724; Wed, 28 Mar 2001 08:11:52 -0800 (PST) (envelope-from jhb@FreeBSD.org) Received: (from jhb@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f2SGBq521407; Wed, 28 Mar 2001 08:11:52 -0800 (PST) (envelope-from jhb) Message-Id: <200103281611.f2SGBq521407@freefall.freebsd.org> From: John Baldwin Date: Wed, 28 Mar 2001 08:11:52 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern subr_witness.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG jhb 2001/03/28 08:11:52 PST Modified files: sys/kern subr_witness.c Log: Close a race condition where if we were obtaining a sleep lock and no spin locks were held, we could be preempted and switch CPU's in between the time that we set a variable to the list of spin locks on our CPU and the time that we checked that variable to ensure no spinlocks were held while grabbing a sleep lock. Losing the race resulted in checking some other CPU's spin lock list and bogusly panicing. Revision Changes Path 1.61 +15 -2 src/sys/kern/subr_witness.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message