aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/scsi/zfcp_fsf.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/s390/scsi/zfcp_fsf.c')
-rw-r--r--drivers/s390/scsi/zfcp_fsf.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/drivers/s390/scsi/zfcp_fsf.c b/drivers/s390/scsi/zfcp_fsf.c
index 9d7bf965d398..9ada555ca5a8 100644
--- a/drivers/s390/scsi/zfcp_fsf.c
+++ b/drivers/s390/scsi/zfcp_fsf.c
@@ -1096,7 +1096,7 @@ static int zfcp_fsf_setup_ct_els(struct zfcp_fsf_req *req,
1096 */ 1096 */
1097int zfcp_fsf_send_ct(struct zfcp_send_ct *ct, mempool_t *pool) 1097int zfcp_fsf_send_ct(struct zfcp_send_ct *ct, mempool_t *pool)
1098{ 1098{
1099 struct zfcp_wka_port *wka_port = ct->wka_port; 1099 struct zfcp_fc_wka_port *wka_port = ct->wka_port;
1100 struct zfcp_qdio *qdio = wka_port->adapter->qdio; 1100 struct zfcp_qdio *qdio = wka_port->adapter->qdio;
1101 struct zfcp_fsf_req *req; 1101 struct zfcp_fsf_req *req;
1102 int ret = -EIO; 1102 int ret = -EIO;
@@ -1610,11 +1610,11 @@ out:
1610 1610
1611static void zfcp_fsf_open_wka_port_handler(struct zfcp_fsf_req *req) 1611static void zfcp_fsf_open_wka_port_handler(struct zfcp_fsf_req *req)
1612{ 1612{
1613 struct zfcp_wka_port *wka_port = req->data; 1613 struct zfcp_fc_wka_port *wka_port = req->data;
1614 struct fsf_qtcb_header *header = &req->qtcb->header; 1614 struct fsf_qtcb_header *header = &req->qtcb->header;
1615 1615
1616 if (req->status & ZFCP_STATUS_FSFREQ_ERROR) { 1616 if (req->status & ZFCP_STATUS_FSFREQ_ERROR) {
1617 wka_port->status = ZFCP_WKA_PORT_OFFLINE; 1617 wka_port->status = ZFCP_FC_WKA_PORT_OFFLINE;
1618 goto out; 1618 goto out;
1619 } 1619 }
1620 1620
@@ -1627,13 +1627,13 @@ static void zfcp_fsf_open_wka_port_handler(struct zfcp_fsf_req *req)
1627 req->status |= ZFCP_STATUS_FSFREQ_ERROR; 1627 req->status |= ZFCP_STATUS_FSFREQ_ERROR;
1628 /* fall through */ 1628 /* fall through */
1629 case FSF_ACCESS_DENIED: 1629 case FSF_ACCESS_DENIED:
1630 wka_port->status = ZFCP_WKA_PORT_OFFLINE; 1630 wka_port->status = ZFCP_FC_WKA_PORT_OFFLINE;
1631 break; 1631 break;
1632 case FSF_GOOD: 1632 case FSF_GOOD:
1633 wka_port->handle = header->port_handle; 1633 wka_port->handle = header->port_handle;
1634 /* fall through */ 1634 /* fall through */
1635 case FSF_PORT_ALREADY_OPEN: 1635 case FSF_PORT_ALREADY_OPEN:
1636 wka_port->status = ZFCP_WKA_PORT_ONLINE; 1636 wka_port->status = ZFCP_FC_WKA_PORT_ONLINE;
1637 } 1637 }
1638out: 1638out:
1639 wake_up(&wka_port->completion_wq); 1639 wake_up(&wka_port->completion_wq);
@@ -1641,10 +1641,10 @@ out:
1641 1641
1642/** 1642/**
1643 * zfcp_fsf_open_wka_port - create and send open wka-port request 1643 * zfcp_fsf_open_wka_port - create and send open wka-port request
1644 * @wka_port: pointer to struct zfcp_wka_port 1644 * @wka_port: pointer to struct zfcp_fc_wka_port
1645 * Returns: 0 on success, error otherwise 1645 * Returns: 0 on success, error otherwise
1646 */ 1646 */
1647int zfcp_fsf_open_wka_port(struct zfcp_wka_port *wka_port) 1647int zfcp_fsf_open_wka_port(struct zfcp_fc_wka_port *wka_port)
1648{ 1648{
1649 struct qdio_buffer_element *sbale; 1649 struct qdio_buffer_element *sbale;
1650 struct zfcp_qdio *qdio = wka_port->adapter->qdio; 1650 struct zfcp_qdio *qdio = wka_port->adapter->qdio;
@@ -1683,23 +1683,23 @@ out:
1683 1683
1684static void zfcp_fsf_close_wka_port_handler(struct zfcp_fsf_req *req) 1684static void zfcp_fsf_close_wka_port_handler(struct zfcp_fsf_req *req)
1685{ 1685{
1686 struct zfcp_wka_port *wka_port = req->data; 1686 struct zfcp_fc_wka_port *wka_port = req->data;
1687 1687
1688 if (req->qtcb->header.fsf_status == FSF_PORT_HANDLE_NOT_VALID) { 1688 if (req->qtcb->header.fsf_status == FSF_PORT_HANDLE_NOT_VALID) {
1689 req->status |= ZFCP_STATUS_FSFREQ_ERROR; 1689 req->status |= ZFCP_STATUS_FSFREQ_ERROR;
1690 zfcp_erp_adapter_reopen(wka_port->adapter, 0, "fscwph1", req); 1690 zfcp_erp_adapter_reopen(wka_port->adapter, 0, "fscwph1", req);
1691 } 1691 }
1692 1692
1693 wka_port->status = ZFCP_WKA_PORT_OFFLINE; 1693 wka_port->status = ZFCP_FC_WKA_PORT_OFFLINE;
1694 wake_up(&wka_port->completion_wq); 1694 wake_up(&wka_port->completion_wq);
1695} 1695}
1696 1696
1697/** 1697/**
1698 * zfcp_fsf_close_wka_port - create and send close wka port request 1698 * zfcp_fsf_close_wka_port - create and send close wka port request
1699 * @erp_action: pointer to struct zfcp_erp_action 1699 * @wka_port: WKA port to open
1700 * Returns: 0 on success, error otherwise 1700 * Returns: 0 on success, error otherwise
1701 */ 1701 */
1702int zfcp_fsf_close_wka_port(struct zfcp_wka_port *wka_port) 1702int zfcp_fsf_close_wka_port(struct zfcp_fc_wka_port *wka_port)
1703{ 1703{
1704 struct qdio_buffer_element *sbale; 1704 struct qdio_buffer_element *sbale;
1705 struct zfcp_qdio *qdio = wka_port->adapter->qdio; 1705 struct zfcp_qdio *qdio = wka_port->adapter->qdio;