Commit 4c7b6ea3 authored by John Garry's avatar John Garry Committed by Martin K. Petersen

scsi: core: Remove scsi_cmnd.tag

It is never read, so get rid of it.

Link: https://lore.kernel.org/r/1628862553-179450-4-git-send-email-john.garry@huawei.comReviewed-by: default avatarHannes Reinecke <hare@suse.de>
Reviewed-by: default avatarBart Van Assche <bvanassche@acm.org>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarJohn Garry <john.garry@huawei.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 6a036ce0
...@@ -1540,7 +1540,6 @@ static blk_status_t scsi_prepare_cmd(struct request *req) ...@@ -1540,7 +1540,6 @@ static blk_status_t scsi_prepare_cmd(struct request *req)
scsi_init_command(sdev, cmd); scsi_init_command(sdev, cmd);
cmd->tag = req->tag;
cmd->prot_op = SCSI_PROT_NORMAL; cmd->prot_op = SCSI_PROT_NORMAL;
if (blk_rq_bytes(req)) if (blk_rq_bytes(req))
cmd->sc_data_direction = rq_dma_dir(req); cmd->sc_data_direction = rq_dma_dir(req);
......
...@@ -139,7 +139,6 @@ struct scsi_cmnd { ...@@ -139,7 +139,6 @@ struct scsi_cmnd {
int flags; /* Command flags */ int flags; /* Command flags */
unsigned long state; /* Command completion state */ unsigned long state; /* Command completion state */
unsigned char tag; /* SCSI-II queued command tag */
unsigned int extra_len; /* length of alignment and padding */ unsigned int extra_len; /* length of alignment and padding */
}; };
......
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