Subject: CVS commit: src
To: None <source-changes@netbsd.org>
From: Jason R Thorpe <thorpej@netbsd.org>
List: source-changes
Date: 12/07/1998 16:17:21
Module Name:	src
Committed By:	thorpej
Date:		Tue Dec  8 00:17:21 UTC 1998

Modified Files:
	src/sys/dev/scsipi: scsipi_base.c
Log Message:
- When allocating a scsipi_xfer, add it to the specified device's
pending_xfers queue.
- When freeing a scsipi_xfer, remove it from the device's pending_xfers
queue.  If the queue is empty, and SDEV_WAITDRAIN is set, wakeup
those waiting for the queue to drain.
- Implement scsipi_wait_drain(), which waits for a device's pending_xfers
queue to drain.