diff options
author | Bart Van Assche <bvanassche@acm.org> | 2022-02-18 11:50:45 -0800 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2022-02-22 21:11:04 -0500 |
commit | 30564db73b58863a2e7a9b450a7a3457b0b15954 (patch) | |
tree | 83362cdf78635c333e831589ee710d72a04a25a9 /drivers/scsi/csiostor/csio_scsi.h | |
parent | 34f5b537a9004f05a4b6243ea0d0e3df5813ed80 (diff) | |
download | lwn-30564db73b58863a2e7a9b450a7a3457b0b15954.tar.gz lwn-30564db73b58863a2e7a9b450a7a3457b0b15954.zip |
scsi: csio: Stop using the SCSI pointer
Set .cmd_size in the SCSI host template instead of using the SCSI pointer
from struct scsi_cmnd. This patch prepares for removal of the SCSI pointer
from struct scsi_cmnd.
Link: https://lore.kernel.org/r/20220218195117.25689-18-bvanassche@acm.org
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/csiostor/csio_scsi.h')
-rw-r--r-- | drivers/scsi/csiostor/csio_scsi.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/scsi/csiostor/csio_scsi.h b/drivers/scsi/csiostor/csio_scsi.h index 2257c3dcf724..39dda3c88f0d 100644 --- a/drivers/scsi/csiostor/csio_scsi.h +++ b/drivers/scsi/csiostor/csio_scsi.h @@ -188,6 +188,16 @@ struct csio_scsi_level_data { uint64_t oslun; }; +struct csio_cmd_priv { + uint8_t fc_tm_flags; /* task management flags */ + uint16_t wr_status; +}; + +static inline struct csio_cmd_priv *csio_priv(struct scsi_cmnd *cmd) +{ + return scsi_cmd_priv(cmd); +} + static inline struct csio_ioreq * csio_get_scsi_ioreq(struct csio_scsim *scm) { |