summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/aacraid/commsup.c
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2017-06-30 19:18:11 +0200
committerMartin K. Petersen <martin.petersen@oracle.com>2017-08-07 20:04:00 +0200
commitc323eab7a6bd20ee65e58ac23301bd98c32bf65d (patch)
tree26984ce7e84941b36cfdf35590511c33b168071d /drivers/scsi/aacraid/commsup.c
parentscsi: aacraid: enable sending of TMFs from aac_hba_send() (diff)
downloadlinux-c323eab7a6bd20ee65e58ac23301bd98c32bf65d.tar.xz
linux-c323eab7a6bd20ee65e58ac23301bd98c32bf65d.zip
scsi: aacraid: add fib flag to mark scsi command callback
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>
Diffstat (limited to 'drivers/scsi/aacraid/commsup.c')
-rw-r--r--drivers/scsi/aacraid/commsup.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/aacraid/commsup.c b/drivers/scsi/aacraid/commsup.c
index 348f0ea105ee..dfe8e70f8d99 100644
--- a/drivers/scsi/aacraid/commsup.c
+++ b/drivers/scsi/aacraid/commsup.c
@@ -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;