diff options
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_os.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_os.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c index 5fd7adbff30b..649fd75d37b6 100644 --- a/drivers/scsi/qla2xxx/qla_os.c +++ b/drivers/scsi/qla2xxx/qla_os.c | |||
@@ -1216,6 +1216,7 @@ qla2xxx_slave_configure(struct scsi_device *sdev) | |||
1216 | scsi_qla_host_t *vha = shost_priv(sdev->host); | 1216 | scsi_qla_host_t *vha = shost_priv(sdev->host); |
1217 | struct qla_hw_data *ha = vha->hw; | 1217 | struct qla_hw_data *ha = vha->hw; |
1218 | struct fc_rport *rport = starget_to_rport(sdev->sdev_target); | 1218 | struct fc_rport *rport = starget_to_rport(sdev->sdev_target); |
1219 | fc_port_t *fcport = *(fc_port_t **)rport->dd_data; | ||
1219 | struct req_que *req = vha->req; | 1220 | struct req_que *req = vha->req; |
1220 | 1221 | ||
1221 | if (sdev->tagged_supported) | 1222 | if (sdev->tagged_supported) |
@@ -1224,6 +1225,8 @@ qla2xxx_slave_configure(struct scsi_device *sdev) | |||
1224 | scsi_deactivate_tcq(sdev, req->max_q_depth); | 1225 | scsi_deactivate_tcq(sdev, req->max_q_depth); |
1225 | 1226 | ||
1226 | rport->dev_loss_tmo = ha->port_down_retry_count; | 1227 | rport->dev_loss_tmo = ha->port_down_retry_count; |
1228 | if (sdev->type == TYPE_TAPE) | ||
1229 | fcport->flags |= FCF_TAPE_PRESENT; | ||
1227 | 1230 | ||
1228 | return 0; | 1231 | return 0; |
1229 | } | 1232 | } |