Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Jan 2004 16:50:38 +0100 (CET)
From:      Lukas Ertl <l.ertl@univie.ac.at>
To:        Pawel Jakub Dawidek <nick@garage.freebsd.pl>
Cc:        freebsd-geom@freebsd.org
Subject:   Re: Preventing deadlocks on the event queue.
Message-ID:  <20040126164924.C90355@pcle2.cc.univie.ac.at>
In-Reply-To: <20040125234848.GH565@garage.freebsd.pl>
References:  <20040125234848.GH565@garage.freebsd.pl>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 26 Jan 2004, Pawel Jakub Dawidek wrote:

> Hello.
>
> So, I think I've found clever way to prevents deadlock caused by
> calling g_waitfor_event() from an event.
>
> My idea is to check if curthread in g_waitfor_event() is a g_event thread.
>
> 	http://garage.freebsd.pl/patches/geom_event_deadlock.patch

Do you really want to make this a separate function?  Since it's just a
one-line comparison, wouldn't a macro suffice?

regards,
le

-- 
Lukas Ertl                             eMail: l.ertl@univie.ac.at
UNIX Systemadministrator               Tel.:  (+43 1) 4277-14073
Vienna University Computer Center      Fax.:  (+43 1) 4277-9140
University of Vienna                   http://mailbox.univie.ac.at/~le/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040126164924.C90355>