aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/scsi/zfcp_aux.c
diff options
context:
space:
mode:
authorChristof Schmitt <christof.schmitt@de.ibm.com>2008-05-06 05:00:05 -0400
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2008-06-05 10:23:42 -0400
commitc9615858a81d2424c78b10a2f689ba24b156937c (patch)
tree34af50eaeb958a95d13b4f1b6ec9da7ea89f7024 /drivers/s390/scsi/zfcp_aux.c
parent688864e29869a71a8183e4e2f96ccf9f2de1375f (diff)
[SCSI] zfcp: Track fabric and channel latencies provided by FCP adapter
Add the infrastructure to retrieve the fabric and channel latencies from FSF commands for each SCSI command that has been processed. For each unit, the sum, min, max and number of requests is tracked. 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@HansenPartnership.com>
Diffstat (limited to 'drivers/s390/scsi/zfcp_aux.c')
-rw-r--r--drivers/s390/scsi/zfcp_aux.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/s390/scsi/zfcp_aux.c b/drivers/s390/scsi/zfcp_aux.c
index 8c7e2b778ef1..d23027a2f2f0 100644
--- a/drivers/s390/scsi/zfcp_aux.c
+++ b/drivers/s390/scsi/zfcp_aux.c
@@ -847,6 +847,14 @@ zfcp_unit_enqueue(struct zfcp_port *port, fcp_lun_t fcp_lun)
847 /* mark unit unusable as long as sysfs registration is not complete */ 847 /* mark unit unusable as long as sysfs registration is not complete */
848 atomic_set_mask(ZFCP_STATUS_COMMON_REMOVE, &unit->status); 848 atomic_set_mask(ZFCP_STATUS_COMMON_REMOVE, &unit->status);
849 849
850 spin_lock_init(&unit->latencies.lock);
851 unit->latencies.write.channel.min = 0xFFFFFFFF;
852 unit->latencies.write.fabric.min = 0xFFFFFFFF;
853 unit->latencies.read.channel.min = 0xFFFFFFFF;
854 unit->latencies.read.fabric.min = 0xFFFFFFFF;
855 unit->latencies.cmd.channel.min = 0xFFFFFFFF;
856 unit->latencies.cmd.fabric.min = 0xFFFFFFFF;
857
850 if (device_register(&unit->sysfs_device)) { 858 if (device_register(&unit->sysfs_device)) {
851 kfree(unit); 859 kfree(unit);
852 return NULL; 860 return NULL;