Commit fe7d979a authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] scsi/ppa.c cleanup and fixes (9/9)

	* don't take the unnecessary ->host_lock around ->scsi_done() call.
parent c88a756d
......@@ -627,7 +627,6 @@ static void ppa_interrupt(void *data)
{
ppa_struct *dev = (ppa_struct *) data;
Scsi_Cmnd *cmd = dev->cur_cmd;
unsigned long flags;
if (!cmd) {
printk("PPA: bug in ppa_interrupt\n");
......@@ -680,10 +679,7 @@ static void ppa_interrupt(void *data)
dev->cur_cmd = 0;
spin_lock_irqsave(cmd->device->host->host_lock, flags);
cmd->scsi_done(cmd);
spin_unlock_irqrestore(cmd->device->host->host_lock, flags);
return;
}
static int ppa_engine(ppa_struct *dev, Scsi_Cmnd *cmd)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment