|
@@ -1216,6 +1216,7 @@ qla2xxx_slave_configure(struct scsi_device *sdev)
|
|
scsi_qla_host_t *vha = shost_priv(sdev->host);
|
|
scsi_qla_host_t *vha = shost_priv(sdev->host);
|
|
struct qla_hw_data *ha = vha->hw;
|
|
struct qla_hw_data *ha = vha->hw;
|
|
struct fc_rport *rport = starget_to_rport(sdev->sdev_target);
|
|
struct fc_rport *rport = starget_to_rport(sdev->sdev_target);
|
|
|
|
+ fc_port_t *fcport = *(fc_port_t **)rport->dd_data;
|
|
struct req_que *req = vha->req;
|
|
struct req_que *req = vha->req;
|
|
|
|
|
|
if (sdev->tagged_supported)
|
|
if (sdev->tagged_supported)
|
|
@@ -1224,6 +1225,8 @@ qla2xxx_slave_configure(struct scsi_device *sdev)
|
|
scsi_deactivate_tcq(sdev, req->max_q_depth);
|
|
scsi_deactivate_tcq(sdev, req->max_q_depth);
|
|
|
|
|
|
rport->dev_loss_tmo = ha->port_down_retry_count;
|
|
rport->dev_loss_tmo = ha->port_down_retry_count;
|
|
|
|
+ if (sdev->type == TYPE_TAPE)
|
|
|
|
+ fcport->flags |= FCF_TAPE_PRESENT;
|
|
|
|
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|