aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla4xxx/ql4_os.c
diff options
context:
space:
mode:
authorJames Bottomley <JBottomley@Parallels.com>2014-12-08 10:40:20 -0500
committerJames Bottomley <JBottomley@Parallels.com>2014-12-08 10:40:20 -0500
commitdc843ef00e79ef0466d4d66bb20beeccda92e003 (patch)
tree7491381fdd81b6d40b25fec533e6f249d7823ce3 /drivers/scsi/qla4xxx/ql4_os.c
parent009d0431c3914de64666bec0d350e54fdd59df6a (diff)
parent249b15ba6380830881b7863ca5dd3f33320adfdb (diff)
Merge remote-tracking branch 'scsi-queue/core-for-3.19' into for-linus
Diffstat (limited to 'drivers/scsi/qla4xxx/ql4_os.c')
-rw-r--r--drivers/scsi/qla4xxx/ql4_os.c19
1 files changed, 2 insertions, 17 deletions
diff --git a/drivers/scsi/qla4xxx/ql4_os.c b/drivers/scsi/qla4xxx/ql4_os.c
index 199fcf79a051..f8724f2e0158 100644
--- a/drivers/scsi/qla4xxx/ql4_os.c
+++ b/drivers/scsi/qla4xxx/ql4_os.c
@@ -162,8 +162,6 @@ static int qla4xxx_eh_device_reset(struct scsi_cmnd *cmd);
162static int qla4xxx_eh_target_reset(struct scsi_cmnd *cmd); 162static int qla4xxx_eh_target_reset(struct scsi_cmnd *cmd);
163static int qla4xxx_eh_host_reset(struct scsi_cmnd *cmd); 163static 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 int qla4xxx_slave_configure(struct scsi_device *device);
166static void qla4xxx_slave_destroy(struct scsi_device *sdev);
167static umode_t qla4_attr_is_visible(int param_type, int param); 165static umode_t qla4_attr_is_visible(int param_type, int param);
168static int qla4xxx_host_reset(struct Scsi_Host *shost, int reset_type); 166static int qla4xxx_host_reset(struct Scsi_Host *shost, int reset_type);
169static int qla4xxx_change_queue_depth(struct scsi_device *sdev, int qdepth, 167static int qla4xxx_change_queue_depth(struct scsi_device *sdev, int qdepth,
@@ -204,9 +202,7 @@ static struct scsi_host_template qla4xxx_driver_template = {
204 .eh_host_reset_handler = qla4xxx_eh_host_reset, 202 .eh_host_reset_handler = qla4xxx_eh_host_reset,
205 .eh_timed_out = qla4xxx_eh_cmd_timed_out, 203 .eh_timed_out = qla4xxx_eh_cmd_timed_out,
206 204
207 .slave_configure = qla4xxx_slave_configure,
208 .slave_alloc = qla4xxx_slave_alloc, 205 .slave_alloc = qla4xxx_slave_alloc,
209 .slave_destroy = qla4xxx_slave_destroy,
210 .change_queue_depth = qla4xxx_change_queue_depth, 206 .change_queue_depth = qla4xxx_change_queue_depth,
211 207
212 .this_id = -1, 208 .this_id = -1,
@@ -218,6 +214,7 @@ static struct scsi_host_template qla4xxx_driver_template = {
218 .shost_attrs = qla4xxx_host_attrs, 214 .shost_attrs = qla4xxx_host_attrs,
219 .host_reset = qla4xxx_host_reset, 215 .host_reset = qla4xxx_host_reset,
220 .vendor_id = SCSI_NL_VID_TYPE_PCI | PCI_VENDOR_ID_QLOGIC, 216 .vendor_id = SCSI_NL_VID_TYPE_PCI | PCI_VENDOR_ID_QLOGIC,
217 .use_blk_tags = 1,
221}; 218};
222 219
223static struct iscsi_transport qla4xxx_iscsi_transport = { 220static struct iscsi_transport qla4xxx_iscsi_transport = {
@@ -9060,26 +9057,14 @@ static int qla4xxx_slave_alloc(struct scsi_device *sdev)
9060 ddb = sess->dd_data; 9057 ddb = sess->dd_data;
9061 9058
9062 sdev->hostdata = ddb; 9059 sdev->hostdata = ddb;
9063 sdev->tagged_supported = 1;
9064 9060
9065 if (ql4xmaxqdepth != 0 && ql4xmaxqdepth <= 0xffffU) 9061 if (ql4xmaxqdepth != 0 && ql4xmaxqdepth <= 0xffffU)
9066 queue_depth = ql4xmaxqdepth; 9062 queue_depth = ql4xmaxqdepth;
9067 9063
9068 scsi_activate_tcq(sdev, queue_depth); 9064 scsi_adjust_queue_depth(sdev, queue_depth);
9069 return 0; 9065 return 0;
9070} 9066}
9071 9067
9072static int qla4xxx_slave_configure(struct scsi_device *sdev)
9073{
9074 sdev->tagged_supported = 1;
9075 return 0;
9076}
9077
9078static void qla4xxx_slave_destroy(struct scsi_device *sdev)
9079{
9080 scsi_deactivate_tcq(sdev, 1);
9081}
9082
9083static int qla4xxx_change_queue_depth(struct scsi_device *sdev, int qdepth, 9068static int qla4xxx_change_queue_depth(struct scsi_device *sdev, int qdepth,
9084 int reason) 9069 int reason)
9085{ 9070{