cvs commit: src/sys/compat/ndis subr_ntoskrnl.c

Andrew Thompson thompsa at
Sun Jul 22 20:53:29 UTC 2007

thompsa     2007-07-22 20:53:28 UTC

  FreeBSD src repository

  Modified files:
    sys/compat/ndis      subr_ntoskrnl.c 
  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

More information about the cvs-src mailing list