Subject: CVS commit: syssrc [thorpej_scsipi]
To: None <source-changes@netbsd.org>
From: Manuel BOUYER <bouyer@netbsd.org>
List: source-changes
Date: 04/22/2001 19:40:30
Module Name:	syssrc
Committed By:	bouyer
Date:		Sun Apr 22 16:40:30 UTC 2001

Modified Files:
	syssrc/sys/dev/scsipi [thorpej_scsipi]: scsipi_base.c scsipiconf.h

Log Message:
Keep track of the number of commands per periph really sent to the adapter.
In scsipi_run_queue(), compare this to periph_openings instead of periph_active
When a drive reject all queued commands with QUEUE FULL (my IBM DDRS34560D
does this on large writes) we end up with all commands in the queue, and
periph_active > periph_openings.
While doing this I found a bug in scsipi_async_event_channel_reset(): calling
scsipi_done() would corrupt accounting.


To generate a diff of this commit:
cvs rdiff -r1.26.2.14 -r1.26.2.15 syssrc/sys/dev/scsipi/scsipi_base.c
cvs rdiff -r1.32.2.13 -r1.32.2.14 syssrc/sys/dev/scsipi/scsipiconf.h

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