diff options
author | Christof Schmitt <christof.schmitt@de.ibm.com> | 2009-11-24 10:54:11 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2009-12-04 13:02:14 -0500 |
commit | bd0072ecc449fb2ea8f6a2c9f6ff308f3ae0b078 (patch) | |
tree | d58dc3bbac4a7e5c7fa44c009c4946b091eb9a88 /drivers/s390/scsi/zfcp_fsf.c | |
parent | dbf5dfe9dbcecf159139eec25ad256738cbc3715 (diff) |
[SCSI] zfcp: Move WKA port to zfcp FC code
The well-known-address (WKA) port handling code is part of the FC code
in zfcp. Move everything WKA related to the zfcp_fc files and use the
common zfcp_fc prefix for structs and functions. Drop the unused key
management service while renaming the struct, no request could ever
reach this service in zfcp and it is obsolete anyway.
Reviewed-by: Swen Schillig <swen@vnet.ibm.com>
Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/s390/scsi/zfcp_fsf.c')
-rw-r--r-- | drivers/s390/scsi/zfcp_fsf.c | 22 |
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 | */ |
1097 | int zfcp_fsf_send_ct(struct zfcp_send_ct *ct, mempool_t *pool) | 1097 | int 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 | ||
1611 | static void zfcp_fsf_open_wka_port_handler(struct zfcp_fsf_req *req) | 1611 | static 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 | } |
1638 | out: | 1638 | out: |
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 | */ |
1647 | int zfcp_fsf_open_wka_port(struct zfcp_wka_port *wka_port) | 1647 | int 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 | ||
1684 | static void zfcp_fsf_close_wka_port_handler(struct zfcp_fsf_req *req) | 1684 | static 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 | */ |
1702 | int zfcp_fsf_close_wka_port(struct zfcp_wka_port *wka_port) | 1702 | int 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; |