patch-2.1.66 linux/drivers/scsi/ppa.c

Next file: linux/drivers/scsi/ppa.h
Previous file: linux/drivers/pci/pci.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.65/linux/drivers/scsi/ppa.c linux/drivers/scsi/ppa.c
@@ -275,7 +275,7 @@
 	len = length;
     return len;
 }
-/* end of ppa.c */
+
 static int device_check(int host_no);
 
 #if PPA_DEBUG > 0
@@ -1000,8 +1000,10 @@
     }
 #endif
 
-    ppa_disconnect(cmd->host->unique_id);
-    ppa_pb_release(cmd->host->unique_id);
+    if (cmd->SCp.phase > 1)
+	ppa_disconnect(cmd->host->unique_id);
+    if (cmd->SCp.phase > 0)
+	ppa_pb_release(cmd->host->unique_id);
     tmp->cur_cmd = 0;
     cmd->scsi_done(cmd);
     return;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov