*BSD News Article 24401


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!network.ucsd.edu!ogicse!emory!europa.eng.gtefsd.com!library.ucla.edu!agate!tfs.com!julian
From: julian@TFS.COM (Julian Elischer)
Newsgroups: comp.os.386bsd.bugs
Subject: scsi-bug AND FIX
Message-ID: <CH15tJ.A9L@tfs.com>
Date: 25 Nov 93 04:29:43 GMT
Article-I.D.: tfs.CH15tJ.A9L
Sender: usenet@tfs.com
Organization: TRW Financial Systems
Lines: 37

yesterday I posted a notice about a bug in the New scsi code and 
advised people to not open an already running  scsi device.

Here is the fix

this is for the new scsi code available from freefall.cdrom.com:
~ftp/scsi


*** scsi_base.c.orig	Wed Nov 24 19:37:05 1993
--- scsi_base.c	Wed Nov 24 19:39:15 1993
***************
*** 110,116 ****
  	/* if was 0 and someone waits, wake them up */
  	sc_link->opennings++;
  	if (sc_link->flags & SDEV_WAITING) {
! 		wakeup(sc_link);
  	} else {
  		if (sc_link->device->start) {
  			SC_DEBUG(sc_link, SDEV_DB2, ("calling private start()\n"));
--- 110,117 ----
  	/* if was 0 and someone waits, wake them up */
  	sc_link->opennings++;
  	if (sc_link->flags & SDEV_WAITING) {
! 		sc_link->flags &= ~SDEV_WAITING; 
! 		wakeup(sc_link); /* remember, it wakes them ALL up */
  	} else {
  		if (sc_link->device->start) {
  			SC_DEBUG(sc_link, SDEV_DB2, ("calling private start()\n"));







			julian