Date: Thu, 4 Dec 2008 21:41:49 +0100 From: "=?ISO-8859-1?Q?Marius_N=FCnnerich?=" <marius@nuenneri.ch> To: freebsd-geom@freebsd.org Subject: Trivial(?) reorganization of topology lock in geom_event Message-ID: <b649e5e0812041241ja4c3886s526590c98e59f629@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Hi, while working on the DTrace probes for geom I noticed that g_topology_lock() is called 20 times per second from the g_event thread, even though the thread only runs 10 times per second when idle. Maybe it is possible to change the locking like in this patch? I also changed the position of one unlocking of g_eventlock. Patch (relative to src/sys): http://nuenneri.ch/freebsd/geom_tl.patch As a side note: Do all the msleep calls have to have a timeout? Why is this so? Kind regards Marius
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b649e5e0812041241ja4c3886s526590c98e59f629>