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

scsi: remove scsi_set_tag_type

There is no benefit over just setting sdev->simple_tags directly.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com
Reviewed-by: Hannes Reinecke <hare@suse.de>

+1 -16
+1 -1
drivers/scsi/53c700.c
··· 902 902 hostdata->tag_negotiated &= ~(1<<scmd_id(SCp)); 903 903 904 904 SCp->device->tagged_supported = 0; 905 + SCp->device->simple_tags = 0; 905 906 scsi_change_queue_depth(SCp->device, host->cmd_per_lun); 906 - scsi_set_tag_type(SCp->device, 0); 907 907 } else { 908 908 shost_printk(KERN_WARNING, host, 909 909 "(%d:%d) Unexpected REJECT Message %s\n",
-15
include/scsi/scsi_tcq.h
··· 15 15 16 16 17 17 #ifdef CONFIG_BLOCK 18 - static inline void scsi_set_tag_type(struct scsi_device *sdev, int tag) 19 - { 20 - switch (tag) { 21 - case MSG_ORDERED_TAG: 22 - case MSG_SIMPLE_TAG: 23 - sdev->simple_tags = 1; 24 - break; 25 - case 0: 26 - /* fall through */ 27 - default: 28 - sdev->simple_tags = 0; 29 - break; 30 - } 31 - } 32 - 33 18 static inline struct scsi_cmnd *scsi_mq_find_tag(struct Scsi_Host *shost, 34 19 int unique_tag) 35 20 {