patch-2.2.8 linux/drivers/scsi/ppa.c
Next file: linux/drivers/scsi/scsi.c
Previous file: linux/drivers/scsi/megaraid.h
Back to the patch index
Back to the overall index
- Lines: 19
- Date:
Fri May 7 10:57:42 1999
- Orig file:
v2.2.7/linux/drivers/scsi/ppa.c
- Orig date:
Mon Mar 29 11:09:11 1999
diff -u --recursive --new-file v2.2.7/linux/drivers/scsi/ppa.c linux/drivers/scsi/ppa.c
@@ -741,6 +741,7 @@
{
ppa_struct *tmp = (ppa_struct *) data;
Scsi_Cmnd *cmd = tmp->cur_cmd;
+ unsigned long flags;
if (!cmd) {
printk("PPA: bug in ppa_interrupt\n");
@@ -792,7 +793,10 @@
ppa_pb_release(cmd->host->unique_id);
tmp->cur_cmd = 0;
+
+ spin_lock_irqsave(&io_request_lock, flags);
cmd->scsi_done(cmd);
+ spin_unlock_irqrestore(&io_request_lock, flags);
return;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)