[SCSI] qla4xxx: Complete the cmd if sense_len is zero
authorPrasanna Mumbai <prasanna.mumbai@qlogic.com>
Wed, 18 May 2011 06:17:06 +0000 (23:17 -0700)
committerJames Bottomley <jbottomley@parallels.com>
Tue, 24 May 2011 16:39:29 +0000 (12:39 -0400)
commit6d78bd56be54286a72413db82d87fc371867629f
tree8c7d09eee7b8cd8622d8af8e401ac244c482b10e
parent68d92ebf598e205619dea753a9a990aef4ab8f7a
[SCSI] qla4xxx: Complete the cmd if sense_len is zero

Complete the cmd if sense length is zero. For cases where sense
data spans across multiple iocb's by FW, we need to hold on to the
I/O (ha->status_srb != NULL) till we have processed them all and
copied the sense data from internal buffer to scsi_cmd sense buffer.

Signed-off-by: Prasanna Mumbai <prasanna.mumbai@qlogic.com>
Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com>
Reviewed-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <jbottomley@parallels.com>
drivers/scsi/qla4xxx/ql4_isr.c