]> git.ipfire.org Git - ipfire-2.x.git/blame - src/patches/suse-2.6.27.39/patches.arch/s390-15-02-phys-port-close.patch
Fix oinkmaster patch.
[ipfire-2.x.git] / src / patches / suse-2.6.27.39 / patches.arch / s390-15-02-phys-port-close.patch
CommitLineData
2cb7cef9
BS
1From: Gerald Schaefer <geraldsc@de.ibm.com>
2Subject: zfcp: Handle "forced close" correctly in the erp
3References: bnc#518291,LTC#54458
4
5Symptom: After a remote port problem, the zfcp erp does not
6 recover from the problem.
7Problem: After trying the "forced close" step from the erp the
8 the check of the flag indicating if the port is still
9 open is wrong.
10Solution: Fix the check of the open flag.
11
12Acked-by: John Jolly <jjolly@suse.de>
13---
14 drivers/s390/scsi/zfcp_erp.c | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17--- a/drivers/s390/scsi/zfcp_erp.c 2009-06-23 14:11:53.000000000 +0200
18+++ b/drivers/s390/scsi/zfcp_erp.c 2009-06-23 14:11:57.000000000 +0200
19@@ -796,7 +796,7 @@ static int zfcp_erp_port_forced_strategy
20 return ZFCP_ERP_FAILED;
21
22 case ZFCP_ERP_STEP_PHYS_PORT_CLOSING:
23- if (status & ZFCP_STATUS_PORT_PHYS_OPEN)
24+ if (!(status & ZFCP_STATUS_PORT_PHYS_OPEN))
25 return ZFCP_ERP_SUCCEEDED;
26 }
27 return ZFCP_ERP_FAILED;