diff options
author | Christof Schmitt <christof.schmitt@de.ibm.com> | 2009-07-13 09:06:05 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2009-07-30 09:49:55 -0400 |
commit | 688a1820bde27749f22b18b94ef1c9bc179b1b29 (patch) | |
tree | 184667c02a14d8d597510e5750c9982214ec14ad /drivers/s390 | |
parent | 1e9b16430ff4fd09408a74342d6b8338228e2f70 (diff) |
[SCSI] zfcp: Use correct flags for zfcp_erp_notify
zfcp_erp_notify uses the ZFCP_ERP_STATUS_* flags, so it is
ZFCP_STATUS_ERP_LOWMEM instead of ZFCP_ERP_NOMEM. Signalling
ZFCP_ERP_FAILED is not necessary, the missing d_id will show that the
nameserver did not return the d_id.
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/s390/scsi/zfcp_erp.c b/drivers/s390/scsi/zfcp_erp.c index 8030e25152fb..e7d7ef55e37d 100644 --- a/drivers/s390/scsi/zfcp_erp.c +++ b/drivers/s390/scsi/zfcp_erp.c | |||
@@ -854,10 +854,10 @@ void zfcp_erp_port_strategy_open_lookup(struct work_struct *work) | |||
854 | 854 | ||
855 | retval = zfcp_fc_ns_gid_pn(&port->erp_action); | 855 | retval = zfcp_fc_ns_gid_pn(&port->erp_action); |
856 | if (retval == -ENOMEM) | 856 | if (retval == -ENOMEM) |
857 | zfcp_erp_notify(&port->erp_action, ZFCP_ERP_NOMEM); | 857 | zfcp_erp_notify(&port->erp_action, ZFCP_STATUS_ERP_LOWMEM); |
858 | port->erp_action.step = ZFCP_ERP_STEP_NAMESERVER_LOOKUP; | 858 | port->erp_action.step = ZFCP_ERP_STEP_NAMESERVER_LOOKUP; |
859 | if (retval) | 859 | if (retval) |
860 | zfcp_erp_notify(&port->erp_action, ZFCP_ERP_FAILED); | 860 | zfcp_erp_notify(&port->erp_action, 0); |
861 | zfcp_port_put(port); | 861 | zfcp_port_put(port); |
862 | } | 862 | } |
863 | 863 | ||