Subject: CVS commit: src
To: None <source-changes@netbsd.org>
From: Scott Reynolds <scottr@netbsd.org>
List: source-changes
Date: 09/15/1998 22:35:51
Module Name:	src
Committed By:	scottr
Date:		Wed Sep 16 05:35:51 UTC 1998

Modified Files:
	src/sys/dev/scsipi: scsipi_base.c
Log Message:
Found a race in scsipi_execute_xs():  if an asynchronous transfer completes
(probably due to an interrupt) between the time it is scheduled and the
time we get around to setting the SCSI_ASYNCREQ flag, we can lose the xs.

Fix this by checking to see if the transfer has already completed after
the scsi_cmd function returns SUCCESSFULLY_QUEUED, and just return to the
caller if so.