Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

scsi: scsi_transport_spi: Use scsi_cmd_to_rq() instead of scsi_cmnd.request

Prepare for removal of the request pointer by using scsi_cmd_to_rq()
instead. This patch does not change any functionality.

Link: https://lore.kernel.org/r/20210809230355.8186-7-bvanassche@acm.org
Cc: Christoph Hellwig <hch@lst.de>
Cc: Hannes Reinecke <hare@suse.de>
Cc: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Bart Van Assche and committed by
Martin K. Petersen
eb43d41d 3b4720fc

+1 -1
+1 -1
drivers/scsi/scsi_transport_spi.c
··· 1230 1230 { 1231 1231 if (cmd->flags & SCMD_TAGGED) { 1232 1232 *msg++ = SIMPLE_QUEUE_TAG; 1233 - *msg++ = cmd->request->tag; 1233 + *msg++ = scsi_cmd_to_rq(cmd)->tag; 1234 1234 return 2; 1235 1235 } 1236 1236