diff options
author | Martin Peschke <mp3@de.ibm.com> | 2008-03-27 14:22:02 +0100 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-04-07 12:19:04 -0500 |
commit | 698ec01635819c5ae60090bb4efcbeffc41642fb (patch) | |
tree | 8800461be45c3efa65558441a3d049fd0a38bf52 /drivers/s390/scsi/zfcp_sysfs_unit.c | |
parent | 348447e85749120ad600a5c8e23b6bb7058b931d (diff) | |
download | linux-698ec01635819c5ae60090bb4efcbeffc41642fb.tar.gz linux-698ec01635819c5ae60090bb4efcbeffc41642fb.tar.bz2 linux-698ec01635819c5ae60090bb4efcbeffc41642fb.zip |
[SCSI] zfcp: Add traces for state changes.
This patch writes a trace record which provides information about state
changes for adapters, ports and units, e.g. target failure, targets becoming
online, targets being temporarily blocked due to pending recovery, targets
which have been recovered successfully etc.
Signed-off-by: Martin Peschke <mp3@de.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/scsi/zfcp_sysfs_unit.c')
-rw-r--r-- | drivers/s390/scsi/zfcp_sysfs_unit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/s390/scsi/zfcp_sysfs_unit.c b/drivers/s390/scsi/zfcp_sysfs_unit.c index 63f75ee95c33..52a5f6a25ff9 100644 --- a/drivers/s390/scsi/zfcp_sysfs_unit.c +++ b/drivers/s390/scsi/zfcp_sysfs_unit.c @@ -94,7 +94,8 @@ zfcp_sysfs_unit_failed_store(struct device *dev, struct device_attribute *attr, goto out; } - zfcp_erp_modify_unit_status(unit, ZFCP_STATUS_COMMON_RUNNING, ZFCP_SET); + zfcp_erp_modify_unit_status(unit, 46, 0, + ZFCP_STATUS_COMMON_RUNNING, ZFCP_SET); zfcp_erp_unit_reopen(unit, ZFCP_STATUS_COMMON_ERP_FAILED); zfcp_erp_wait(unit->port->adapter); out: |