aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla4xxx/ql4_os.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/qla4xxx/ql4_os.c')
-rw-r--r--drivers/scsi/qla4xxx/ql4_os.c16
1 files changed, 4 insertions, 12 deletions
diff --git a/drivers/scsi/qla4xxx/ql4_os.c b/drivers/scsi/qla4xxx/ql4_os.c
index f8724f2e0158..2bfde373ea2b 100644
--- a/drivers/scsi/qla4xxx/ql4_os.c
+++ b/drivers/scsi/qla4xxx/ql4_os.c
@@ -164,8 +164,6 @@ static int qla4xxx_eh_host_reset(struct scsi_cmnd *cmd);
164static int qla4xxx_slave_alloc(struct scsi_device *device); 164static int qla4xxx_slave_alloc(struct scsi_device *device);
165static umode_t qla4_attr_is_visible(int param_type, int param); 165static umode_t qla4_attr_is_visible(int param_type, int param);
166static int qla4xxx_host_reset(struct Scsi_Host *shost, int reset_type); 166static int qla4xxx_host_reset(struct Scsi_Host *shost, int reset_type);
167static int qla4xxx_change_queue_depth(struct scsi_device *sdev, int qdepth,
168 int reason);
169 167
170/* 168/*
171 * iSCSI Flash DDB sysfs entry points 169 * iSCSI Flash DDB sysfs entry points
@@ -203,7 +201,7 @@ static struct scsi_host_template qla4xxx_driver_template = {
203 .eh_timed_out = qla4xxx_eh_cmd_timed_out, 201 .eh_timed_out = qla4xxx_eh_cmd_timed_out,
204 202
205 .slave_alloc = qla4xxx_slave_alloc, 203 .slave_alloc = qla4xxx_slave_alloc,
206 .change_queue_depth = qla4xxx_change_queue_depth, 204 .change_queue_depth = iscsi_change_queue_depth,
207 205
208 .this_id = -1, 206 .this_id = -1,
209 .cmd_per_lun = 3, 207 .cmd_per_lun = 3,
@@ -9065,15 +9063,6 @@ static int qla4xxx_slave_alloc(struct scsi_device *sdev)
9065 return 0; 9063 return 0;
9066} 9064}
9067 9065
9068static int qla4xxx_change_queue_depth(struct scsi_device *sdev, int qdepth,
9069 int reason)
9070{
9071 if (!ql4xqfulltracking)
9072 return -EOPNOTSUPP;
9073
9074 return iscsi_change_queue_depth(sdev, qdepth, reason);
9075}
9076
9077/** 9066/**
9078 * qla4xxx_del_from_active_array - returns an active srb 9067 * qla4xxx_del_from_active_array - returns an active srb
9079 * @ha: Pointer to host adapter structure. 9068 * @ha: Pointer to host adapter structure.
@@ -9873,6 +9862,9 @@ static int __init qla4xxx_module_init(void)
9873{ 9862{
9874 int ret; 9863 int ret;
9875 9864
9865 if (ql4xqfulltracking)
9866 qla4xxx_driver_template.track_queue_depth = 1;
9867
9876 /* Allocate cache for SRBs. */ 9868 /* Allocate cache for SRBs. */
9877 srb_cachep = kmem_cache_create("qla4xxx_srbs", sizeof(struct srb), 0, 9869 srb_cachep = kmem_cache_create("qla4xxx_srbs", sizeof(struct srb), 0,
9878 SLAB_HWCACHE_ALIGN, NULL); 9870 SLAB_HWCACHE_ALIGN, NULL);