Date: Sat, 10 May 2008 11:37:05 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern kern_event.c Message-ID: <200805101137.m4ABb5pq021379@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
kib 2008-05-10 11:37:05 UTC
FreeBSD src repository
Modified files:
sys/kern kern_event.c
Log:
Kqueue_scan() may sleep when encountered the influx knotes. On the other
hand, it may cause other threads to sleep since kqueue_scan() may mark
some knotes as infux. This could lead to the deadlock.
Before kqueue_scan() sleeps, wakeup the threads that are waiting for the
influx knotes produced by this thread.
Tested by: pho (previous version)
Reviewed by: jmg
MFC after: 2 weeks
Revision Changes Path
1.120 +10 -1 src/sys/kern/kern_event.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200805101137.m4ABb5pq021379>
