Subject: CVS commit: src/sys/dev/scsipi
To: None <source-changes@NetBSD.org>
From: Manuel Bouyer <bouyer@netbsd.org>
List: source-changes
Date: 08/04/2004 22:25:45
Module Name: src
Committed By: bouyer
Date: Wed Aug 4 22:25:45 UTC 2004
Modified Files:
src/sys/dev/scsipi: scsipi_base.c
Log Message:
Fix some problems in the scsipi detach code:
- only call periph_switch->psw_start() if the device is active; if it is not
psw_start() may try to access invalid data.
- remove the TAILQ_FIRST(&periph->periph_xferq) != NULL diagnostic in
scsipi_kill_pending(). This can't be true at this point (unless the device
was idle at the time of the detach), because the scsipi channel kernel
thread has to run for the queue to be flushed.
There are still other problems to be fixed here ...
To generate a diff of this commit:
cvs rdiff -r1.105 -r1.106 src/sys/dev/scsipi/scsipi_base.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.