From owner-cvs-all Fri Sep 27 13:38:38 2002 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 AA7E137B401; Fri, 27 Sep 2002 13:38:37 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4253B43E7B; Fri, 27 Sep 2002 13:38:37 -0700 (PDT) (envelope-from phk@FreeBSD.org) Received: from freefall.freebsd.org (phk@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id g8RKcbCo034259; Fri, 27 Sep 2002 13:38:37 -0700 (PDT) (envelope-from phk@freefall.freebsd.org) Received: (from phk@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id g8RKcbDd034258; Fri, 27 Sep 2002 13:38:37 -0700 (PDT) Message-Id: <200209272038.g8RKcbDd034258@freefall.freebsd.org> From: Poul-Henning Kamp Date: Fri, 27 Sep 2002 13:38:37 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/geom geom.h geom_event.c geom_int.h X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG phk 2002/09/27 13:38:36 PDT Modified files: sys/geom geom.h geom_event.c geom_int.h Log: Implement g_call_me() as a way for geom methods to schedule operations to be performed in the event-thread. To do this, we need to lock the eventlist with g_eventlock (nee g_doorlock), since g_call_me() being called from the UP/DOWN paths will not be able to aquire g_topology_lock. This also means that for now these events are not referenced on any particular consumer/provider/geom. For UP/DOWN path use, this will not become a problem since the access() function will make sure we drain any bio's before we dismantle. Sponsored by: DARPA & NAI Labs. Revision Changes Path 1.22 +3 -1 src/sys/geom/geom.h 1.13 +30 -0 src/sys/geom/geom_event.c 1.3 +3 -0 src/sys/geom/geom_int.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message