]> git.ipfire.org Git - ipfire-2.x.git/blame_incremental - src/patches/suse-2.6.27.39/patches.arch/s390-15-05-zfcp-erp-notify.patch
Fix oinkmaster patch.
[ipfire-2.x.git] / src / patches / suse-2.6.27.39 / patches.arch / s390-15-05-zfcp-erp-notify.patch
... / ...
CommitLineData
1From: Gerald Schaefer <geraldsc@de.ibm.com>
2Subject: zfcp: Use correct flags when reporting status to erp
3References: bnc#518291,LTC#54463
4
5Symptom: The erp might not detect correctly problems from the
6 gid_pn nameserver requests.
7Problem: The wrong status flags have been used to pass updates via
8 the call to zfcp_erp_notify.
9Solution: Use the correct status flags when calling zfcp_erp_notify.
10
11Acked-by: John Jolly <jjolly@suse.de>
12---
13
14 drivers/s390/scsi/zfcp_erp.c | 4 ++--
15 1 file changed, 2 insertions(+), 2 deletions(-)
16
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(
20
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;
26 if (retval)
27- zfcp_erp_notify(&port->erp_action, ZFCP_ERP_FAILED);
28+ zfcp_erp_notify(&port->erp_action, 0);
29 zfcp_port_put(port);
30 }
31