From: Mike Christie Date: Tue, 26 Oct 2010 12:45:30 +0000 (-0700) Subject: [SCSI] qla4xxx: Fix cmd check in qla4xxx_cmd_wait X-Git-Tag: v2.6.37-rc1~6^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a1e0063d0c015145946981262f8d5f9758d8a895;p=pandora-kernel.git [SCSI] qla4xxx: Fix cmd check in qla4xxx_cmd_wait If the command has timedout then the block layer has called blk_mark_rq_complete. If qla4xxx_cmd_wait is then called from qla4xxx_eh_host_reset, we will always fail, because if the driver calls scsi_done then the the block layer will fail at blk_complete_request's blk_mark_rq_complete call instead of calling the normal completion path including the function, blk_queue_end_tag, which releases the tag. Signed-off-by: Mike Christie Signed-off-by: Vikas Chaudhary Signed-off-by: James Bottomley --- Reading git-diff-tree failed