]> git.hungrycats.org Git - linux/commitdiff
[PATCH] scsi/ppa.c cleanup and fixes (9/9)
authorAlexander Viro <viro@www.linux.org.uk>
Thu, 5 Feb 2004 01:47:48 +0000 (17:47 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Thu, 5 Feb 2004 01:47:48 +0000 (17:47 -0800)
* don't take the unnecessary ->host_lock around ->scsi_done() call.

drivers/scsi/ppa.c

index 9f7d5c2eb943177f82ca9f2248a50c1be3285b8b..69107395eaf8777bfad787f332375c13fea324eb 100644 (file)
@@ -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)