]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[SCSI] advansys: Remove a check for an impossible condition
authorMatthew Wilcox <matthew@wil.cx>
Sun, 9 Sep 2007 14:56:32 +0000 (08:56 -0600)
committerJames Bottomley <jejb@mulgrave.localdomain>
Fri, 12 Oct 2007 18:47:48 +0000 (14:47 -0400)
The midlayer guarantees it won't call ->queuecommand for a host which
is handling a reset condition.

Signed-off-by: Matthew Wilcox <matthew@wil.cx>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/advansys.c

index 526239a21332039b2c9703a146f7e1275df44f77..cd17f28fd3baf6311cee49bc125809cff93c0aa9 100644 (file)
@@ -3281,25 +3281,6 @@ advansys_queuecommand(struct scsi_cmnd *scp, void (*done) (struct scsi_cmnd *))
        /* against own ISR */
        spin_lock_irqsave(&boardp->lock, flags);
 
-       /*
-        * Block new commands while handling a reset or abort request.
-        */
-       if (boardp->flags & ASC_HOST_IN_RESET) {
-               ASC_DBG1(1,
-                        "advansys_queuecommand: scp 0x%lx blocked for reset request\n",
-                        (ulong)scp);
-               scp->result = HOST_BYTE(DID_RESET);
-
-               /*
-                * Add blocked requests to the board's 'done' queue. The queued
-                * requests will be completed at the end of the abort or reset
-                * handling.
-                */
-               asc_enqueue(&boardp->done, scp, ASC_BACK);
-               spin_unlock_irqrestore(&boardp->lock, flags);
-               return 0;
-       }
-
        scp->scsi_done = done;
        asc_res = asc_execute_scsi_cmnd(scp);
        switch (asc_res) {