aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/scsi/zfcp_erp.c
diff options
context:
space:
mode:
authorChristof Schmitt <christof.schmitt@de.ibm.com>2008-10-01 06:42:15 -0400
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2008-10-03 13:11:52 -0400
commitff3b24fa5370a7ca618f212284d9b36fcedb9c0e (patch)
treed5631509c630046c9d0a42a4e949179976b0ef9f /drivers/s390/scsi/zfcp_erp.c
parent2450d3e7b8604d0abb042817f2502cb7ee0b782f (diff)
[SCSI] zfcp: Update message with input from review
Update the kernel messages in zfcp with input from the message review and remove some messages that have been identified as redundant. Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com> Signed-off-by: Swen Schillig <swen@vnet.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/s390/scsi/zfcp_erp.c')
-rw-r--r--drivers/s390/scsi/zfcp_erp.c50
1 files changed, 22 insertions, 28 deletions
diff --git a/drivers/s390/scsi/zfcp_erp.c b/drivers/s390/scsi/zfcp_erp.c
index 643ac4bba5b5..4dd8fe70c415 100644
--- a/drivers/s390/scsi/zfcp_erp.c
+++ b/drivers/s390/scsi/zfcp_erp.c
@@ -901,11 +901,6 @@ static int zfcp_erp_open_ptp_port(struct zfcp_erp_action *act)
901 struct zfcp_port *port = act->port; 901 struct zfcp_port *port = act->port;
902 902
903 if (port->wwpn != adapter->peer_wwpn) { 903 if (port->wwpn != adapter->peer_wwpn) {
904 dev_err(&adapter->ccw_device->dev,
905 "Failed to open port 0x%016Lx, "
906 "Peer WWPN 0x%016Lx does not "
907 "match.\n", port->wwpn,
908 adapter->peer_wwpn);
909 zfcp_erp_port_failed(port, 25, NULL); 904 zfcp_erp_port_failed(port, 25, NULL);
910 return ZFCP_ERP_FAILED; 905 return ZFCP_ERP_FAILED;
911 } 906 }
@@ -929,7 +924,8 @@ static int zfcp_erp_port_strategy_open_common(struct zfcp_erp_action *act)
929 return zfcp_erp_open_ptp_port(act); 924 return zfcp_erp_open_ptp_port(act);
930 if (!ns_port) { 925 if (!ns_port) {
931 dev_err(&adapter->ccw_device->dev, 926 dev_err(&adapter->ccw_device->dev,
932 "Nameserver port unavailable.\n"); 927 "Attaching the name server port to the "
928 "FCP device failed\n");
933 return ZFCP_ERP_FAILED; 929 return ZFCP_ERP_FAILED;
934 } 930 }
935 if (!(atomic_read(&ns_port->status) & 931 if (!(atomic_read(&ns_port->status) &
@@ -1065,8 +1061,13 @@ static int zfcp_erp_strategy_check_unit(struct zfcp_unit *unit, int result)
1065 break; 1061 break;
1066 case ZFCP_ERP_FAILED : 1062 case ZFCP_ERP_FAILED :
1067 atomic_inc(&unit->erp_counter); 1063 atomic_inc(&unit->erp_counter);
1068 if (atomic_read(&unit->erp_counter) > ZFCP_MAX_ERPS) 1064 if (atomic_read(&unit->erp_counter) > ZFCP_MAX_ERPS) {
1065 dev_err(&unit->port->adapter->ccw_device->dev,
1066 "ERP failed for unit 0x%016Lx on "
1067 "port 0x%016Lx\n",
1068 unit->fcp_lun, unit->port->wwpn);
1069 zfcp_erp_unit_failed(unit, 21, NULL); 1069 zfcp_erp_unit_failed(unit, 21, NULL);
1070 }
1070 break; 1071 break;
1071 } 1072 }
1072 1073
@@ -1091,8 +1092,12 @@ static int zfcp_erp_strategy_check_port(struct zfcp_port *port, int result)
1091 result = ZFCP_ERP_EXIT; 1092 result = ZFCP_ERP_EXIT;
1092 } 1093 }
1093 atomic_inc(&port->erp_counter); 1094 atomic_inc(&port->erp_counter);
1094 if (atomic_read(&port->erp_counter) > ZFCP_MAX_ERPS) 1095 if (atomic_read(&port->erp_counter) > ZFCP_MAX_ERPS) {
1096 dev_err(&port->adapter->ccw_device->dev,
1097 "ERP failed for remote port 0x%016Lx\n",
1098 port->wwpn);
1095 zfcp_erp_port_failed(port, 22, NULL); 1099 zfcp_erp_port_failed(port, 22, NULL);
1100 }
1096 break; 1101 break;
1097 } 1102 }
1098 1103
@@ -1114,8 +1119,12 @@ static int zfcp_erp_strategy_check_adapter(struct zfcp_adapter *adapter,
1114 1119
1115 case ZFCP_ERP_FAILED : 1120 case ZFCP_ERP_FAILED :
1116 atomic_inc(&adapter->erp_counter); 1121 atomic_inc(&adapter->erp_counter);
1117 if (atomic_read(&adapter->erp_counter) > ZFCP_MAX_ERPS) 1122 if (atomic_read(&adapter->erp_counter) > ZFCP_MAX_ERPS) {
1123 dev_err(&adapter->ccw_device->dev,
1124 "ERP cannot recover an error "
1125 "on the FCP device\n");
1118 zfcp_erp_adapter_failed(adapter, 23, NULL); 1126 zfcp_erp_adapter_failed(adapter, 23, NULL);
1127 }
1119 break; 1128 break;
1120 } 1129 }
1121 1130
@@ -1263,8 +1272,7 @@ static void zfcp_erp_schedule_work(struct zfcp_unit *unit)
1263 p = kzalloc(sizeof(*p), GFP_KERNEL); 1272 p = kzalloc(sizeof(*p), GFP_KERNEL);
1264 if (!p) { 1273 if (!p) {
1265 dev_err(&unit->port->adapter->ccw_device->dev, 1274 dev_err(&unit->port->adapter->ccw_device->dev,
1266 "Out of resources. Could not register unit " 1275 "Registering unit 0x%016Lx on port 0x%016Lx failed\n",
1267 "0x%016Lx on port 0x%016Lx with SCSI stack.\n",
1268 unit->fcp_lun, unit->port->wwpn); 1276 unit->fcp_lun, unit->port->wwpn);
1269 return; 1277 return;
1270 } 1278 }
@@ -1286,8 +1294,8 @@ static void zfcp_erp_rport_register(struct zfcp_port *port)
1286 port->rport = fc_remote_port_add(port->adapter->scsi_host, 0, &ids); 1294 port->rport = fc_remote_port_add(port->adapter->scsi_host, 0, &ids);
1287 if (!port->rport) { 1295 if (!port->rport) {
1288 dev_err(&port->adapter->ccw_device->dev, 1296 dev_err(&port->adapter->ccw_device->dev,
1289 "Failed registration of rport " 1297 "Registering port 0x%016Lx failed\n",
1290 "0x%016Lx.\n", port->wwpn); 1298 port->wwpn);
1291 return; 1299 return;
1292 } 1300 }
1293 1301
@@ -1484,7 +1492,7 @@ int zfcp_erp_thread_setup(struct zfcp_adapter *adapter)
1484 retval = kernel_thread(zfcp_erp_thread, adapter, SIGCHLD); 1492 retval = kernel_thread(zfcp_erp_thread, adapter, SIGCHLD);
1485 if (retval < 0) { 1493 if (retval < 0) {
1486 dev_err(&adapter->ccw_device->dev, 1494 dev_err(&adapter->ccw_device->dev,
1487 "Creation of ERP thread failed.\n"); 1495 "Creating an ERP thread for the FCP device failed.\n");
1488 return retval; 1496 return retval;
1489 } 1497 }
1490 wait_event(adapter->erp_thread_wqh, 1498 wait_event(adapter->erp_thread_wqh,
@@ -1526,7 +1534,6 @@ void zfcp_erp_adapter_failed(struct zfcp_adapter *adapter, u8 id, void *ref)
1526{ 1534{
1527 zfcp_erp_modify_adapter_status(adapter, id, ref, 1535 zfcp_erp_modify_adapter_status(adapter, id, ref,
1528 ZFCP_STATUS_COMMON_ERP_FAILED, ZFCP_SET); 1536 ZFCP_STATUS_COMMON_ERP_FAILED, ZFCP_SET);
1529 dev_err(&adapter->ccw_device->dev, "Adapter ERP failed.\n");
1530} 1537}
1531 1538
1532/** 1539/**
@@ -1539,15 +1546,6 @@ void zfcp_erp_port_failed(struct zfcp_port *port, u8 id, void *ref)
1539{ 1546{
1540 zfcp_erp_modify_port_status(port, id, ref, 1547 zfcp_erp_modify_port_status(port, id, ref,
1541 ZFCP_STATUS_COMMON_ERP_FAILED, ZFCP_SET); 1548 ZFCP_STATUS_COMMON_ERP_FAILED, ZFCP_SET);
1542
1543 if (atomic_read(&port->status) & ZFCP_STATUS_PORT_WKA)
1544 dev_err(&port->adapter->ccw_device->dev,
1545 "Port ERP failed for WKA port d_id=0x%06x.\n",
1546 port->d_id);
1547 else
1548 dev_err(&port->adapter->ccw_device->dev,
1549 "Port ERP failed for port wwpn=0x%016Lx.\n",
1550 port->wwpn);
1551} 1549}
1552 1550
1553/** 1551/**
@@ -1560,10 +1558,6 @@ void zfcp_erp_unit_failed(struct zfcp_unit *unit, u8 id, void *ref)
1560{ 1558{
1561 zfcp_erp_modify_unit_status(unit, id, ref, 1559 zfcp_erp_modify_unit_status(unit, id, ref,
1562 ZFCP_STATUS_COMMON_ERP_FAILED, ZFCP_SET); 1560 ZFCP_STATUS_COMMON_ERP_FAILED, ZFCP_SET);
1563
1564 dev_err(&unit->port->adapter->ccw_device->dev,
1565 "Unit ERP failed for unit 0x%016Lx on port 0x%016Lx.\n",
1566 unit->fcp_lun, unit->port->wwpn);
1567} 1561}
1568 1562
1569/** 1563/**