From owner-freebsd-geom@FreeBSD.ORG Sun Oct 24 15:47:07 2010 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 71EB2106566C; Sun, 24 Oct 2010 15:47:07 +0000 (UTC) (envelope-from jh@FreeBSD.org) Received: from gw02.mail.saunalahti.fi (gw02.mail.saunalahti.fi [195.197.172.116]) by mx1.freebsd.org (Postfix) with ESMTP id 26C858FC14; Sun, 24 Oct 2010 15:47:06 +0000 (UTC) Received: from a91-153-123-205.elisa-laajakaista.fi (a91-153-123-205.elisa-laajakaista.fi [91.153.123.205]) by gw02.mail.saunalahti.fi (Postfix) with SMTP id 6C991139690; Sun, 24 Oct 2010 18:47:02 +0300 (EEST) Date: Sun, 24 Oct 2010 18:47:00 +0300 From: Jaakko Heinonen To: Pawel Jakub Dawidek Message-ID: <20101024154700.GA1386@a91-153-123-205.elisa-laajakaista.fi> References: <4C4ED619.7050305@FreeBSD.org> <27237.1280241532@critter.freebsd.dk> <4C4F171C.9010106@FreeBSD.org> <20101021174301.GA1381@a91-153-123-205.elisa-laajakaista.fi> <20101022184645.GA1381@a91-153-123-205.elisa-laajakaista.fi> <20101022210317.GB1742@garage.freebsd.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20101022210317.GB1742@garage.freebsd.pl> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Ivan Voras , freebsd-geom@freebsd.org Subject: Re: Hyperactive g_event thread X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Oct 2010 15:47:07 -0000 On 2010-10-22, Pawel Jakub Dawidek wrote: > You won't lose wakeup even if you unlock first and then call wakeup(), > but unlocking first might save you a context switch. Thanks, I see it now. I reverted the wakeup() and unlock ordering in g_orphan_provider() and g_post_event_x(). Also g_do_wither() unlocks before calling wakeup() now. An updated patch: http://people.freebsd.org/~jh/patches/geom-eventproc-sleep.2.diff -- Jaakko