cvs commit: src/sys/kern kern_event.c         


Author: Konstantin Belousov
Date: May 10, 2008 04:38

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
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
diggit! del.icio.us! reddit!

RELATED THREADS
SubjectArticles qty Group
CVS: cvs.openbsd.org: srcfa.openbsd.sourcechanges ·
cvs commit: src/sys/i386/linux linux_machdep.cmailing.freebsd.cvs ·
CVS commit: src/sys/dev/usbmuc.lists.netbsd.sourcechanges ·