Date: Mon, 22 Nov 2010 16:47:53 +0000 (UTC) From: Jaakko Heinonen <jh@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/geom geom_event.c geom_kern.c Message-ID: <201011221648.oAMGmH73065785@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jh 2010-11-22 16:47:53 UTC
FreeBSD src repository
Modified files:
sys/geom geom_event.c geom_kern.c
Log:
SVN rev 215687 on 2010-11-22 16:47:53Z by jh
Use g_eventlock to protect against losing wakeups in the g_event process
and replace tsleep(9) with msleep(9) which doesn't use a timeout. The
previously used timeout caused the event process to wake up ten times
per second on an idle system.
one_event() is now called with the topology lock held and it returns
with both the topology and event locks held when there are no more
events in the queue.
Reported by: mav, Marius NĂ¼nnerich
Reviewed by: freebsd-geom
Revision Changes Path
1.59 +35 -28 src/sys/geom/geom_event.c
1.43 +2 -4 src/sys/geom/geom_kern.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201011221648.oAMGmH73065785>
