[SCSI] lpfc 8.3.43: Fixed not processing task management IOCB response status
authorJames Smart <james.smart@emulex.com>
Thu, 10 Oct 2013 16:24:07 +0000 (12:24 -0400)
committerJames Bottomley <JBottomley@Parallels.com>
Fri, 25 Oct 2013 08:58:18 +0000 (09:58 +0100)
commit53151bbb83f11b358ac94eddd81347c581dc51ea
treeffce8c5717d448789f1be3ac78c261b6d2d5a681
parent725dd399ae69d0703c0417f9ce0ce065d2a914d1
[SCSI] lpfc 8.3.43: Fixed not processing task management IOCB response status

This patch implements the changes requested by Jeremy Linton:
http://marc.info/?l=linux-scsi&m=136242124409687&w=2

The patch revises the command issuing behavior, detecting cases where the
Task Mgmt command may have completed but with a non-successful status, which it
previously treated as a successful TMF. The patch also corrects a flushing of
I/O that was done which should only be done on successful TMF completion.

Signed-off-by: James Smart <james.smart@emulex.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/lpfc/lpfc_bsg.c
drivers/scsi/lpfc/lpfc_scsi.c
drivers/scsi/lpfc/lpfc_scsi.h
drivers/scsi/lpfc/lpfc_sli.c