scsi: aacraid: add fib flag to mark scsi command callback
authorHannes Reinecke <hare@suse.de>
Fri, 30 Jun 2017 17:18:11 +0000 (19:18 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 7 Aug 2017 18:04:00 +0000 (14:04 -0400)
To correctly identify which fib has a scsi command callback this
patch implements a flag FIB_CONTEXT_FLAG_SCSI_CMD.

Signed-off-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Raghava Aditya Renukunta <RaghavaAditya.Renukunta@microsemi.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/aacraid/aacraid.h
drivers/scsi/aacraid/commsup.c

index d31a9bc2ba69abdcf6cd6c6c8e6d99229ae50e4a..69812994b81e2e130ad16448353efa31b6df34f2 100644 (file)
@@ -1723,6 +1723,7 @@ struct aac_dev
 #define FIB_CONTEXT_FLAG_FASTRESP              (0x00000008)
 #define FIB_CONTEXT_FLAG_NATIVE_HBA            (0x00000010)
 #define FIB_CONTEXT_FLAG_NATIVE_HBA_TMF        (0x00000020)
+#define FIB_CONTEXT_FLAG_SCSI_CMD      (0x00000040)
 
 /*
  *     Define the command values
index 348f0ea105eed3d336bf8a78c781662bfd684211..dfe8e70f8d9968d8b3f2e251bc1639f8d26f562f 100644 (file)
@@ -770,6 +770,7 @@ int aac_hba_send(u8 command, struct fib *fibptr, fib_callback callback,
                /* bit1 of request_id must be 0 */
                hbacmd->request_id =
                        cpu_to_le32((((u32)(fibptr - dev->fibs)) << 2) + 1);
+               fibptr->flags |= FIB_CONTEXT_FLAG_SCSI_CMD;
        } else if (command != HBA_IU_TYPE_SCSI_TM_REQ)
                return -EINVAL;