Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=7686f02aa8a380b3b0322179090f3c83ee4df977
Commit:     7686f02aa8a380b3b0322179090f3c83ee4df977
Parent:     b66229258f88a06ecdb8998066861b3ad8ad6a2a
Author:     Matthew Wilcox <[EMAIL PROTECTED]>
AuthorDate: Sun Sep 9 08:56:32 2007 -0600
Committer:  James Bottomley <[EMAIL PROTECTED]>
CommitDate: Fri Oct 12 14:47:48 2007 -0400

    [SCSI] advansys: Remove a check for an impossible condition
    
    The midlayer guarantees it won't call ->queuecommand for a host which
    is handling a reset condition.
    
    Signed-off-by: Matthew Wilcox <[EMAIL PROTECTED]>
    Signed-off-by: James Bottomley <[EMAIL PROTECTED]>
---
 drivers/scsi/advansys.c |   19 -------------------
 1 files changed, 0 insertions(+), 19 deletions(-)

diff --git a/drivers/scsi/advansys.c b/drivers/scsi/advansys.c
index 526239a..cd17f28 100644
--- a/drivers/scsi/advansys.c
+++ b/drivers/scsi/advansys.c
@@ -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) {
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to