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

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.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>

authored by

John Garry and committed by
Martin K. Petersen
4c7b6ea3 6a036ce0

-2
-1
drivers/scsi/scsi_lib.c
··· 1540 1540 1541 1541 scsi_init_command(sdev, cmd); 1542 1542 1543 - cmd->tag = req->tag; 1544 1543 cmd->prot_op = SCSI_PROT_NORMAL; 1545 1544 if (blk_rq_bytes(req)) 1546 1545 cmd->sc_data_direction = rq_dma_dir(req);
-1
include/scsi/scsi_cmnd.h
··· 139 139 int flags; /* Command flags */ 140 140 unsigned long state; /* Command completion state */ 141 141 142 - unsigned char tag; /* SCSI-II queued command tag */ 143 142 unsigned int extra_len; /* length of alignment and padding */ 144 143 }; 145 144