1 From: Gerald Schaefer <geraldsc@de.ibm.com>
2 Subject: zfcp: Use correct flags when reporting status to erp
3 References: bnc#518291,LTC#54463
5 Symptom: The erp might not detect correctly problems from the
6 gid_pn nameserver requests.
7 Problem: The wrong status flags have been used to pass updates via
8 the call to zfcp_erp_notify.
9 Solution: Use the correct status flags when calling zfcp_erp_notify.
11 Acked-by: John Jolly <jjolly@suse.de>
14 drivers/s390/scsi/zfcp_erp.c | 4 ++--
15 1 file changed, 2 insertions(+), 2 deletions(-)
17 --- a/drivers/s390/scsi/zfcp_erp.c 2009-07-01 11:31:02.000000000 +0200
18 +++ b/drivers/s390/scsi/zfcp_erp.c 2009-07-01 12:44:45.000000000 +0200
19 @@ -850,10 +850,10 @@ void zfcp_erp_port_strategy_open_lookup(
21 retval = zfcp_fc_ns_gid_pn(&port->erp_action);
22 if (retval == -ENOMEM)
23 - zfcp_erp_notify(&port->erp_action, ZFCP_ERP_NOMEM);
24 + zfcp_erp_notify(&port->erp_action, ZFCP_STATUS_ERP_LOWMEM);
25 port->erp_action.step = ZFCP_ERP_STEP_NAMESERVER_LOOKUP;
27 - zfcp_erp_notify(&port->erp_action, ZFCP_ERP_FAILED);
28 + zfcp_erp_notify(&port->erp_action, 0);