aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/scsi/zfcp_sysfs.c
diff options
context:
space:
mode:
authorSwen Schillig <swen@vnet.ibm.com>2010-09-08 08:40:01 -0400
committerJames Bottomley <James.Bottomley@suse.de>2010-09-16 22:54:23 -0400
commitedaed859e63aac174fcc3fed81886b91bb124661 (patch)
treeb79ef611b8cf2bfe9e819ae130eff326ee553234 /drivers/s390/scsi/zfcp_sysfs.c
parentc9ff5d0315231b133a43e5af842bc01fb474f0d7 (diff)
[SCSI] zfcp: Replace status modifier functions.
Replace the zfcp_modify_<xxx>_status functions and its accompanying wrappers with dedicated status modifier functions. This eases code readability and maintenance. Signed-off-by: Swen Schillig <swen@vnet.ibm.com> Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/s390/scsi/zfcp_sysfs.c')
-rw-r--r--drivers/s390/scsi/zfcp_sysfs.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/s390/scsi/zfcp_sysfs.c b/drivers/s390/scsi/zfcp_sysfs.c
index 4f59356b07bb..2f2c54f4718f 100644
--- a/drivers/s390/scsi/zfcp_sysfs.c
+++ b/drivers/s390/scsi/zfcp_sysfs.c
@@ -104,8 +104,7 @@ static ssize_t zfcp_sysfs_port_failed_store(struct device *dev,
104 if (strict_strtoul(buf, 0, &val) || val != 0) 104 if (strict_strtoul(buf, 0, &val) || val != 0)
105 return -EINVAL; 105 return -EINVAL;
106 106
107 zfcp_erp_modify_port_status(port, "sypfai1", NULL, 107 zfcp_erp_set_port_status(port, ZFCP_STATUS_COMMON_RUNNING);
108 ZFCP_STATUS_COMMON_RUNNING, ZFCP_SET);
109 zfcp_erp_port_reopen(port, ZFCP_STATUS_COMMON_ERP_FAILED, "sypfai2", 108 zfcp_erp_port_reopen(port, ZFCP_STATUS_COMMON_ERP_FAILED, "sypfai2",
110 NULL); 109 NULL);
111 zfcp_erp_wait(port->adapter); 110 zfcp_erp_wait(port->adapter);
@@ -147,9 +146,7 @@ static ssize_t zfcp_sysfs_unit_failed_store(struct device *dev,
147 146
148 sdev = zfcp_unit_sdev(unit); 147 sdev = zfcp_unit_sdev(unit);
149 if (sdev) { 148 if (sdev) {
150 zfcp_erp_modify_lun_status(sdev, "syufai1", NULL, 149 zfcp_erp_set_lun_status(sdev, ZFCP_STATUS_COMMON_RUNNING);
151 ZFCP_STATUS_COMMON_RUNNING,
152 ZFCP_SET);
153 zfcp_erp_lun_reopen(sdev, ZFCP_STATUS_COMMON_ERP_FAILED, 150 zfcp_erp_lun_reopen(sdev, ZFCP_STATUS_COMMON_ERP_FAILED,
154 "syufai2", NULL); 151 "syufai2", NULL);
155 zfcp_erp_wait(unit->port->adapter); 152 zfcp_erp_wait(unit->port->adapter);
@@ -199,8 +196,7 @@ static ssize_t zfcp_sysfs_adapter_failed_store(struct device *dev,
199 goto out; 196 goto out;
200 } 197 }
201 198
202 zfcp_erp_modify_adapter_status(adapter, "syafai1", NULL, 199 zfcp_erp_set_adapter_status(adapter, ZFCP_STATUS_COMMON_RUNNING);
203 ZFCP_STATUS_COMMON_RUNNING, ZFCP_SET);
204 zfcp_erp_adapter_reopen(adapter, ZFCP_STATUS_COMMON_ERP_FAILED, 200 zfcp_erp_adapter_reopen(adapter, ZFCP_STATUS_COMMON_ERP_FAILED,
205 "syafai2", NULL); 201 "syafai2", NULL);
206 zfcp_erp_wait(adapter); 202 zfcp_erp_wait(adapter);