Date: Mon, 26 Jan 2004 00:48:48 +0100 From: Pawel Jakub Dawidek <nick@garage.freebsd.pl> To: freebsd-geom@freebsd.org Subject: Preventing deadlocks on the event queue. Message-ID: <20040125234848.GH565@garage.freebsd.pl>
next in thread | raw e-mail | index | archive | help
--doKZ0ri6bHmN2Q5y Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 --=20 Pawel Jakub Dawidek pawel@dawidek.net UNIX Systems Programmer/Administrator http://garage.freebsd.pl Am I Evil? Yes, I Am! http://cerber.sourceforge.net --doKZ0ri6bHmN2Q5y Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iQCVAwUBQBRV4D/PhmMH/Mf1AQEPCwQAmNn8FXRrIyT1HtCOpwQdz28i4MTGCKIN FLDR7YzEAiqYa9SMBpsmqbUL9N8RYtES0SzkhyEfVdAgCtYF1Ij8fwCqxLhJ4PGJ dOgf7EjWZalgQpHcwXVaQ2F6fcs6jFRpLsQrK6qZCJMh+dBEiQAWjEK2E7dsUaPq aLgwq1le3F8= =y0S+ -----END PGP SIGNATURE----- --doKZ0ri6bHmN2Q5y--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040125234848.GH565>