]>
Commit | Line | Data |
---|---|---|
2cb7cef9 BS |
1 | From: Gerald Schaefer <geraldsc@de.ibm.com> |
2 | Subject: zfcp: Handle "forced close" correctly in the erp | |
3 | References: bnc#518291,LTC#54458 | |
4 | ||
5 | Symptom: After a remote port problem, the zfcp erp does not | |
6 | recover from the problem. | |
7 | Problem: 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. | |
10 | Solution: Fix the check of the open flag. | |
11 | ||
12 | Acked-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; |