summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/cxlflash/common.h
diff options
context:
space:
mode:
authorMatthew R. Ochs <mrochs@linux.vnet.ibm.com>2016-11-29 01:43:18 +0100
committerMartin K. Petersen <martin.petersen@oracle.com>2016-12-01 01:53:02 +0100
commitfe7f96982a4e7103ffab45fba34c57ee19b62639 (patch)
tree38fb17ac8d61ab2360fab016e13a60c36e286fcb /drivers/scsi/cxlflash/common.h
parentscsi: cxlflash: Migrate IOARRIN specific routines to function pointers (diff)
downloadlinux-fe7f96982a4e7103ffab45fba34c57ee19b62639.tar.xz
linux-fe7f96982a4e7103ffab45fba34c57ee19b62639.zip
scsi: cxlflash: Migrate scsi command pointer to AFU command
Currently, when sending a SCSI command, the pointer is stored in a reserved field of the AFU command descriptor for retrieval once the SCSI command has completed. In order to support new descriptor formats that make use of the reserved field, the pointer is migrated to outside the descriptor where it can still be found during completion processing. Signed-off-by: Matthew R. Ochs <mrochs@linux.vnet.ibm.com> Acked-by: Uma Krishnan <ukrishn@linux.vnet.ibm.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/cxlflash/common.h')
-rw-r--r--drivers/scsi/cxlflash/common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/cxlflash/common.h b/drivers/scsi/cxlflash/common.h
index 6b8d1d3d45ee..0e9de5d62da2 100644
--- a/drivers/scsi/cxlflash/common.h
+++ b/drivers/scsi/cxlflash/common.h
@@ -129,6 +129,7 @@ struct afu_cmd {
struct sisl_ioarcb rcb; /* IOARCB (cache line aligned) */
struct sisl_ioasa sa; /* IOASA must follow IOARCB */
struct afu *parent;
+ struct scsi_cmnd *scp;
struct completion cevent;
u8 cmd_tmf:1;