aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/scsi.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2014-11-24 09:36:18 -0500
committerChristoph Hellwig <hch@lst.de>2014-12-04 03:55:45 -0500
commitefc3c1df5fda0aee84f53c226d55804e6dbede4f (patch)
treed06cbf91a62eed9ba3df319ffd96c4eea0a39740 /drivers/scsi/scsi.c
parent79855d178557cc3e3ffd179fd26a64cef48dfb30 (diff)
scsi: remove ->change_queue_type method
Since we got rid of ordered tag support in 2010 the prime use case of switching on and off ordered tags has been obsolete. The other function of enabling/disabling tagging entirely has only been correctly implemented by the 53c700 driver and isn't generally useful. 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>
Diffstat (limited to 'drivers/scsi/scsi.c')
-rw-r--r--drivers/scsi/scsi.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/drivers/scsi/scsi.c b/drivers/scsi/scsi.c
index 5ea15fc7d2fb..72282ae3009d 100644
--- a/drivers/scsi/scsi.c
+++ b/drivers/scsi/scsi.c
@@ -832,22 +832,6 @@ int scsi_track_queue_full(struct scsi_device *sdev, int depth)
832EXPORT_SYMBOL(scsi_track_queue_full); 832EXPORT_SYMBOL(scsi_track_queue_full);
833 833
834/** 834/**
835 * scsi_change_queue_type() - Change a device's queue type
836 * @sdev: The SCSI device whose queue depth is to change
837 * @tag_type: Identifier for queue type
838 */
839int scsi_change_queue_type(struct scsi_device *sdev, int tag_type)
840{
841 if (!sdev->tagged_supported)
842 return 0;
843
844 scsi_set_tag_type(sdev, tag_type);
845 return tag_type;
846
847}
848EXPORT_SYMBOL(scsi_change_queue_type);
849
850/**
851 * scsi_vpd_inquiry - Request a device provide us with a VPD page 835 * scsi_vpd_inquiry - Request a device provide us with a VPD page
852 * @sdev: The device to ask 836 * @sdev: The device to ask
853 * @buffer: Where to put the result 837 * @buffer: Where to put the result