Commit ea39700f authored by Bart Van Assche's avatar Bart Van Assche Committed by Martin K. Petersen

scsi: nsp_cs: Move the SCSI pointer to private command data

Set .cmd_size in the SCSI host template instead of using the SCSI pointer
in struct scsi_cmnd.
This patch prepares for removal of the SCSI pointer from struct scsi_cmnd.

Link: https://lore.kernel.org/r/20220218195117.25689-39-bvanassche@acm.orgReviewed-by: default avatarHimanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: default avatarBart Van Assche <bvanassche@acm.org>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 195771c5
This diff is collapsed.
...@@ -371,7 +371,7 @@ enum _burst_mode { ...@@ -371,7 +371,7 @@ enum _burst_mode {
}; };
/* scatter-gather table */ /* scatter-gather table */
# define BUFFER_ADDR ((char *)((sg_virt(SCpnt->SCp.buffer)))) #define BUFFER_ADDR(SCpnt) ((char *)(sg_virt(nsp_priv(SCpnt)->buffer)))
#endif /*__nsp_cs__*/ #endif /*__nsp_cs__*/
/* end */ /* end */
...@@ -145,7 +145,7 @@ static void show_command(struct scsi_cmnd *SCpnt) ...@@ -145,7 +145,7 @@ static void show_command(struct scsi_cmnd *SCpnt)
static void show_phase(struct scsi_cmnd *SCpnt) static void show_phase(struct scsi_cmnd *SCpnt)
{ {
int i = SCpnt->SCp.phase; int i = nsp_scsi_pointer(SCpnt)->phase;
char *ph[] = { char *ph[] = {
"PH_UNDETERMINED", "PH_UNDETERMINED",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment