scsi: lpfc: Set missing abort context
authorJames Smart <jsmart2021@gmail.com>
Sat, 30 Sep 2017 00:34:37 +0000 (17:34 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 3 Oct 2017 02:46:37 +0000 (22:46 -0400)
Always set ctxp->state to LPFC_NVMET_STE_ABORT if ABORT op gets called

Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <james.smart@broadcom.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_nvmet.c

index 43ad220e17ad991a693531a90d660a6f2d467b4c..ee88343f3e8c0d90d666c77c6f8793ab831b1b82 100644 (file)
@@ -822,6 +822,7 @@ lpfc_nvmet_xmt_fcp_abort(struct nvmet_fc_target_port *tgtport,
        atomic_inc(&lpfc_nvmep->xmt_fcp_abort);
 
        spin_lock_irqsave(&ctxp->ctxlock, flags);
+       ctxp->state = LPFC_NVMET_STE_ABORT;
 
        /* Since iaab/iaar are NOT set, we need to check
         * if the firmware is in process of aborting IO