From owner-cvs-all@FreeBSD.ORG Sun Sep 4 19:14:20 2005 Return-Path: X-Original-To: cvs-all@FreeBSD.org 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 7EC1C16A41F; Sun, 4 Sep 2005 19:14:20 +0000 (GMT) (envelope-from phk@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3CBD843D46; Sun, 4 Sep 2005 19:14:20 +0000 (GMT) (envelope-from phk@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 j84JEKkP089357; Sun, 4 Sep 2005 19:14:20 GMT (envelope-from phk@repoman.freebsd.org) Received: (from phk@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j84JEKYU089356; Sun, 4 Sep 2005 19:14:20 GMT (envelope-from phk) Message-Id: <200509041914.j84JEKYU089356@repoman.freebsd.org> From: Poul-Henning Kamp Date: Sun, 4 Sep 2005 19:14:19 +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/geom geom_event.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 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: Sun, 04 Sep 2005 19:14:20 -0000 phk 2005-09-04 19:14:19 UTC FreeBSD src repository Modified files: sys/geom geom_event.c Log: Remove a race condition that could result in processes being stuck waiting for geom events to happen: Instead of maintaining a count of outstanding events, simply look if the queue is empty. Make sure to not remove events from the queue until they are executed in order to not open a new race. Much work by: pjd Tested by: kris MT6: yes, should be. Revision Changes Path 1.54 +30 -24 src/sys/geom/geom_event.c