|
@@ -237,7 +237,6 @@ static int qla2xxx_eh_bus_reset(struct scsi_cmnd *);
|
|
static int qla2xxx_eh_host_reset(struct scsi_cmnd *);
|
|
static int qla2xxx_eh_host_reset(struct scsi_cmnd *);
|
|
|
|
|
|
static int qla2x00_change_queue_depth(struct scsi_device *, int, int);
|
|
static int qla2x00_change_queue_depth(struct scsi_device *, int, int);
|
|
-static int qla2x00_change_queue_type(struct scsi_device *, int);
|
|
|
|
static void qla2x00_clear_drv_active(struct qla_hw_data *);
|
|
static void qla2x00_clear_drv_active(struct qla_hw_data *);
|
|
static void qla2x00_free_device(scsi_qla_host_t *);
|
|
static void qla2x00_free_device(scsi_qla_host_t *);
|
|
static void qla83xx_disable_laser(scsi_qla_host_t *vha);
|
|
static void qla83xx_disable_laser(scsi_qla_host_t *vha);
|
|
@@ -260,7 +259,7 @@ struct scsi_host_template qla2xxx_driver_template = {
|
|
.scan_finished = qla2xxx_scan_finished,
|
|
.scan_finished = qla2xxx_scan_finished,
|
|
.scan_start = qla2xxx_scan_start,
|
|
.scan_start = qla2xxx_scan_start,
|
|
.change_queue_depth = qla2x00_change_queue_depth,
|
|
.change_queue_depth = qla2x00_change_queue_depth,
|
|
- .change_queue_type = qla2x00_change_queue_type,
|
|
|
|
|
|
+ .change_queue_type = scsi_change_queue_type,
|
|
.this_id = -1,
|
|
.this_id = -1,
|
|
.cmd_per_lun = 3,
|
|
.cmd_per_lun = 3,
|
|
.use_clustering = ENABLE_CLUSTERING,
|
|
.use_clustering = ENABLE_CLUSTERING,
|
|
@@ -1473,21 +1472,6 @@ qla2x00_change_queue_depth(struct scsi_device *sdev, int qdepth, int reason)
|
|
return sdev->queue_depth;
|
|
return sdev->queue_depth;
|
|
}
|
|
}
|
|
|
|
|
|
-static int
|
|
|
|
-qla2x00_change_queue_type(struct scsi_device *sdev, int tag_type)
|
|
|
|
-{
|
|
|
|
- if (sdev->tagged_supported) {
|
|
|
|
- scsi_set_tag_type(sdev, tag_type);
|
|
|
|
- if (tag_type)
|
|
|
|
- scsi_activate_tcq(sdev, sdev->queue_depth);
|
|
|
|
- else
|
|
|
|
- scsi_deactivate_tcq(sdev, sdev->queue_depth);
|
|
|
|
- } else
|
|
|
|
- tag_type = 0;
|
|
|
|
-
|
|
|
|
- return tag_type;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* qla2x00_config_dma_addressing() - Configure OS DMA addressing method.
|
|
* qla2x00_config_dma_addressing() - Configure OS DMA addressing method.
|
|
* @ha: HA context
|
|
* @ha: HA context
|