scsi: core: Remove scsi_cmnd.tag
authorJohn Garry <john.garry@huawei.com>
Fri, 13 Aug 2021 13:49:13 +0000 (21:49 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 18 Aug 2021 02:28:39 +0000 (22:28 -0400)
It is never read, so get rid of it.

Link: https://lore.kernel.org/r/1628862553-179450-4-git-send-email-john.garry@huawei.com
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_lib.c
include/scsi/scsi_cmnd.h

index 9ba1aa7..5726738 100644 (file)
@@ -1540,7 +1540,6 @@ static blk_status_t scsi_prepare_cmd(struct request *req)
 
        scsi_init_command(sdev, cmd);
 
-       cmd->tag = req->tag;
        cmd->prot_op = SCSI_PROT_NORMAL;
        if (blk_rq_bytes(req))
                cmd->sc_data_direction = rq_dma_dir(req);
index 6c5a1c1..eaf04c9 100644 (file)
@@ -139,7 +139,6 @@ struct scsi_cmnd {
        int flags;              /* Command flags */
        unsigned long state;    /* Command completion state */
 
-       unsigned char tag;      /* SCSI-II queued command tag */
        unsigned int extra_len; /* length of alignment and padding */
 };