]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Fix driver incorrectly building fcpCdb during scsi command prep (CR 126209)
authorVaios Papadimitriou <vaios.papadimitriou@emulex.com>
Tue, 8 May 2012 22:01:22 +0000 (17:01 -0500)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Wed, 9 May 2012 00:01:22 +0000 (17:01 -0700)
commitcb53f0d7383454c09a696806a02beb403b87ebe3
tree9a4ff9c7601d5cf7bc145bf45850ea392892dbca
parentda1d4e653201dadd559c60d77b32e0091d1da6f8
Fix driver incorrectly building fcpCdb during scsi command prep (CR 126209)

Some scsi inquiry commands were failing with sense key 0x5 and ASC/ASCQ values
of 24/00. At times, this failure cause retries over several hours because the
driver was returning DID_BUS_BUSY. These retries and failures were clogging up
the console logs. Now, always initialize the fcpCdb to 0 during
lpfc_scsi_prep_cmnd. After the memset, only copy scsi_cmnd->cmd_len bytes into
the fcpCdb.

commit id: df9e1b59f9e4671930a7762b9518461df4ea85f5

Signed-off-by: Maxim Uvarov <maxim.uvarov@oracle.com>
drivers/scsi/lpfc/lpfc_scsi.c
drivers/scsi/lpfc/lpfc_scsi.h