summaryrefslogtreecommitdiffstats
path: root/include/scsi/scsi_tcq.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2014-10-02 14:39:55 +0200
committerChristoph Hellwig <hch@lst.de>2014-11-12 11:19:39 +0100
commita62182f338b39a22035531c6afc0a8d2928b1df2 (patch)
tree57ca6cea82a09d2655daf5c161024c5015373646 /include/scsi/scsi_tcq.h
parent1d5203284d8acbdfdf9b478d434450b34f338f28 (diff)
downloadlinux-stable-a62182f338b39a22035531c6afc0a8d2928b1df2.tar.gz
linux-stable-a62182f338b39a22035531c6afc0a8d2928b1df2.tar.bz2
linux-stable-a62182f338b39a22035531c6afc0a8d2928b1df2.zip
scsi: provide a generic change_queue_type method
Most drivers use exactly the same implementation, so provide it as a library function. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Bart Van Assche <bvanassche@acm.org> Reviewed-by: Mike Christie <michaelc@cs.wisc.edu> Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com> Reviewed-by: Hannes Reinecke <hare@suse.de>
Diffstat (limited to 'include/scsi/scsi_tcq.h')
-rw-r--r--include/scsi/scsi_tcq.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/scsi/scsi_tcq.h b/include/scsi/scsi_tcq.h
index 7529c6acc231..1712dab6e00e 100644
--- a/include/scsi/scsi_tcq.h
+++ b/include/scsi/scsi_tcq.h
@@ -16,6 +16,8 @@
#ifdef CONFIG_BLOCK
+int scsi_change_queue_type(struct scsi_device *sdev, int tag_type);
+
/**
* scsi_get_tag_type - get the type of tag the device supports
* @sdev: the scsi device