Subject: CVS commit: src/sys/dev/ic
To: None <source-changes@NetBSD.org>
From: Manuel Bouyer <bouyer@netbsd.org>
List: source-changes
Date: 10/29/2003 21:44:41
Module Name:	src
Committed By:	bouyer
Date:		Wed Oct 29 21:44:41 UTC 2003

Modified Files:
	src/sys/dev/ic: wdc.c

Log Message:
- test if we have some work to do before tsleep() in the kernel thread,
  in case the previous loop scheduled some more work to do (e.g. reset)
- use queue_freese to block the queue when a reset is pending too
- Avoid using WDCF_TH_RUN in some place that can be called from callout.
  If the kernel thread is tsleep()ing somewhere, we may come here with
  WDCF_TH_RUN set while being in the callout context. Fix a panic() in
  tsleep() reported by Chuck Silvers.
- Use AT_WAIT instead of WDCF_TH_RUN wdcwait(), as we may not be in the
  channel's thread context but still be able to tsleep(). Fix queue_freese
  panics for WDC_CAPABILITY_NOIRQ controllers (port-mac68k/23208 by
  Frederick Bruck).


To generate a diff of this commit:
cvs rdiff -r1.146 -r1.147 src/sys/dev/ic/wdc.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.