|
@@ -1594,6 +1594,7 @@ int zfcp_fsf_open_wka_port(struct zfcp_fc_wka_port *wka_port)
|
|
|
{
|
|
{
|
|
|
struct zfcp_qdio *qdio = wka_port->adapter->qdio;
|
|
struct zfcp_qdio *qdio = wka_port->adapter->qdio;
|
|
|
struct zfcp_fsf_req *req;
|
|
struct zfcp_fsf_req *req;
|
|
|
|
|
+ unsigned long req_id = 0;
|
|
|
int retval = -EIO;
|
|
int retval = -EIO;
|
|
|
|
|
|
|
|
spin_lock_irq(&qdio->req_q_lock);
|
|
spin_lock_irq(&qdio->req_q_lock);
|
|
@@ -1616,6 +1617,8 @@ int zfcp_fsf_open_wka_port(struct zfcp_fc_wka_port *wka_port)
|
|
|
hton24(req->qtcb->bottom.support.d_id, wka_port->d_id);
|
|
hton24(req->qtcb->bottom.support.d_id, wka_port->d_id);
|
|
|
req->data = wka_port;
|
|
req->data = wka_port;
|
|
|
|
|
|
|
|
|
|
+ req_id = req->req_id;
|
|
|
|
|
+
|
|
|
zfcp_fsf_start_timer(req, ZFCP_FSF_REQUEST_TIMEOUT);
|
|
zfcp_fsf_start_timer(req, ZFCP_FSF_REQUEST_TIMEOUT);
|
|
|
retval = zfcp_fsf_req_send(req);
|
|
retval = zfcp_fsf_req_send(req);
|
|
|
if (retval)
|
|
if (retval)
|
|
@@ -1623,7 +1626,7 @@ int zfcp_fsf_open_wka_port(struct zfcp_fc_wka_port *wka_port)
|
|
|
out:
|
|
out:
|
|
|
spin_unlock_irq(&qdio->req_q_lock);
|
|
spin_unlock_irq(&qdio->req_q_lock);
|
|
|
if (!retval)
|
|
if (!retval)
|
|
|
- zfcp_dbf_rec_run_wka("fsowp_1", wka_port, req->req_id);
|
|
|
|
|
|
|
+ zfcp_dbf_rec_run_wka("fsowp_1", wka_port, req_id);
|
|
|
return retval;
|
|
return retval;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -1649,6 +1652,7 @@ int zfcp_fsf_close_wka_port(struct zfcp_fc_wka_port *wka_port)
|
|
|
{
|
|
{
|
|
|
struct zfcp_qdio *qdio = wka_port->adapter->qdio;
|
|
struct zfcp_qdio *qdio = wka_port->adapter->qdio;
|
|
|
struct zfcp_fsf_req *req;
|
|
struct zfcp_fsf_req *req;
|
|
|
|
|
+ unsigned long req_id = 0;
|
|
|
int retval = -EIO;
|
|
int retval = -EIO;
|
|
|
|
|
|
|
|
spin_lock_irq(&qdio->req_q_lock);
|
|
spin_lock_irq(&qdio->req_q_lock);
|
|
@@ -1671,6 +1675,8 @@ int zfcp_fsf_close_wka_port(struct zfcp_fc_wka_port *wka_port)
|
|
|
req->data = wka_port;
|
|
req->data = wka_port;
|
|
|
req->qtcb->header.port_handle = wka_port->handle;
|
|
req->qtcb->header.port_handle = wka_port->handle;
|
|
|
|
|
|
|
|
|
|
+ req_id = req->req_id;
|
|
|
|
|
+
|
|
|
zfcp_fsf_start_timer(req, ZFCP_FSF_REQUEST_TIMEOUT);
|
|
zfcp_fsf_start_timer(req, ZFCP_FSF_REQUEST_TIMEOUT);
|
|
|
retval = zfcp_fsf_req_send(req);
|
|
retval = zfcp_fsf_req_send(req);
|
|
|
if (retval)
|
|
if (retval)
|
|
@@ -1678,7 +1684,7 @@ int zfcp_fsf_close_wka_port(struct zfcp_fc_wka_port *wka_port)
|
|
|
out:
|
|
out:
|
|
|
spin_unlock_irq(&qdio->req_q_lock);
|
|
spin_unlock_irq(&qdio->req_q_lock);
|
|
|
if (!retval)
|
|
if (!retval)
|
|
|
- zfcp_dbf_rec_run_wka("fscwp_1", wka_port, req->req_id);
|
|
|
|
|
|
|
+ zfcp_dbf_rec_run_wka("fscwp_1", wka_port, req_id);
|
|
|
return retval;
|
|
return retval;
|
|
|
}
|
|
}
|
|
|
|
|
|