Oops, the previous commit was wrong. Fix it.
authorvlnb <vlnb@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Mon, 19 Feb 2007 12:55:54 +0000 (12:55 +0000)
committervlnb <vlnb@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Mon, 19 Feb 2007 12:55:54 +0000 (12:55 +0000)
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@89 d57e44dd-8a1f-0410-8b47-8ef2f437770f

qla2x00t/qla2x00-target/qla2x00t.c

index be0f5e0..b00c61d 100644 (file)
@@ -924,8 +924,9 @@ out_unlock:
        if (!ha_locked)
                spin_unlock_irqrestore(&ha->hardware_lock, flags);
 
-       if (do_tgt_cmd_done && !in_interrupt()) {
-               msleep(250);
+       if (do_tgt_cmd_done) {
+               if (!in_interrupt())
+                       msleep(250);
                scst_tgt_cmd_done(cmd->scst_cmd);
                /* !! At this point cmd could be already freed !! */
        }