From owner-cvs-src@FreeBSD.ORG Fri Feb 23 16:25:08 2007 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C701216A402; Fri, 23 Feb 2007 16:25:08 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id B6DD913C4B5; Fri, 23 Feb 2007 16:25:08 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id l1NGP8je029886; Fri, 23 Feb 2007 16:25:08 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from jhb@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id l1NGP86A029885; Fri, 23 Feb 2007 16:25:08 GMT (envelope-from jhb) Message-Id: <200702231625.l1NGP86A029885@repoman.freebsd.org> From: John Baldwin Date: Fri, 23 Feb 2007 16:25:08 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/compat/ndis kern_ndis.c src/sys/dev/acpica/Osd OsdSchedule.c src/sys/dev/ata ata-all.c atapi-cd.c atapi-tape.c src/sys/dev/ppc ppc.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Feb 2007 16:25:08 -0000 jhb 2007-02-23 16:25:08 UTC FreeBSD src repository Modified files: sys/compat/ndis kern_ndis.c sys/dev/acpica/Osd OsdSchedule.c sys/dev/ata ata-all.c atapi-cd.c atapi-tape.c sys/dev/ppc ppc.c Log: Use 'pause' in several places rather than trying to tsleep() on NULL (which triggers a KASSERT) or local variables. In the case of kern_ndis, the tsleep() actually used a common sleep address (curproc) making it susceptible to a premature wakeup. Revision Changes Path 1.94 +1 -1 src/sys/compat/ndis/kern_ndis.c 1.38 +1 -2 src/sys/dev/acpica/Osd/OsdSchedule.c 1.279 +3 -3 src/sys/dev/ata/ata-all.c 1.193 +3 -3 src/sys/dev/ata/atapi-cd.c 1.103 +2 -2 src/sys/dev/ata/atapi-tape.c 1.54 +1 -2 src/sys/dev/ppc/ppc.c