aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390
diff options
context:
space:
mode:
authorChristof Schmitt <christof.schmitt@de.ibm.com>2009-07-13 09:06:08 -0400
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2009-07-30 09:49:56 -0400
commitddb3e0c111fed0a8bf74884dc918274acec2b618 (patch)
tree9df343a49fa7d2bf3198f6884c5f8363fbab544c /drivers/s390
parent9072df4dc6e8fd569d583815edb0198af4b688b8 (diff)
[SCSI] zfcp: Fix logic for physical port close
After closing the port, we want it to be "not open" to consider the action to be successful. Reviewed-by: Swen Schillig <swen@vnet.ibm.com> Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/s390')
-rw-r--r--drivers/s390/scsi/zfcp_erp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/scsi/zfcp_erp.c b/drivers/s390/scsi/zfcp_erp.c
index e7d7ef55e37d..0a7c6aef532a 100644
--- a/drivers/s390/scsi/zfcp_erp.c
+++ b/drivers/s390/scsi/zfcp_erp.c
@@ -801,7 +801,7 @@ static int zfcp_erp_port_forced_strategy(struct zfcp_erp_action *erp_action)
801 return ZFCP_ERP_FAILED; 801 return ZFCP_ERP_FAILED;
802 802
803 case ZFCP_ERP_STEP_PHYS_PORT_CLOSING: 803 case ZFCP_ERP_STEP_PHYS_PORT_CLOSING:
804 if (status & ZFCP_STATUS_PORT_PHYS_OPEN) 804 if (!(status & ZFCP_STATUS_PORT_PHYS_OPEN))
805 return ZFCP_ERP_SUCCEEDED; 805 return ZFCP_ERP_SUCCEEDED;
806 } 806 }
807 return ZFCP_ERP_FAILED; 807 return ZFCP_ERP_FAILED;