Date: Sun, 22 Jul 2007 20:53:28 +0000 (UTC) From: Andrew Thompson <thompsa@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/compat/ndis subr_ntoskrnl.c Message-ID: <200707222053.l6MKrS6v040649@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
thompsa 2007-07-22 20:53:28 UTC
FreeBSD src repository
Modified files:
sys/compat/ndis subr_ntoskrnl.c
Log:
ndis will signal the kthread to exit and then sleep on the proc pointer to
be woken up by kthread_exit. This is racey and in some cases the kthread will
exit before ndis gets around to sleep so it will be stuck indefinitely. This
change reuses the kq_exit variable to indicate that the thread has gone and
will loop on tsleep with a timeout waiting for it. If the kthread has already
exited then it will not sleep at all.
Approved by: re (rwatson)
Revision Changes Path
1.90 +6 -2 src/sys/compat/ndis/subr_ntoskrnl.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200707222053.l6MKrS6v040649>
