diff options
author | Martin Peschke <mpeschke@linux.vnet.ibm.com> | 2009-03-02 07:08:56 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2009-03-12 13:58:18 -0400 |
commit | 94506fd1483b39cd5d66b8ccb4ead3c9cc9542ac (patch) | |
tree | bb4cc68021eb831b3cab561810a19bdc24993586 /drivers/s390/scsi/zfcp_def.h | |
parent | 86f8a1b4b472e4b2b58df5826709d4797d84d46f (diff) |
[SCSI] zfcp: add measurement data for average qdio queue utilisation
Provide measurement data for the utilisation of the QDIO outbound queue.
The additional value allows to calculate an average queue utilisation
by looking at the deltas per time unit. Needed for capacity planning.
It is up to user space to handle wrap-arounds of the 64 bit value.
The new counter neatly complements the existing counter for queue full
conditions. That is why, both statistics counter have been integrated.
Signed-off-by: Martin Peschke <mpeschke@linux.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_def.h')
-rw-r--r-- | drivers/s390/scsi/zfcp_def.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/s390/scsi/zfcp_def.h b/drivers/s390/scsi/zfcp_def.h index 56302a1a4b68..a0cd4b080175 100644 --- a/drivers/s390/scsi/zfcp_def.h +++ b/drivers/s390/scsi/zfcp_def.h | |||
@@ -445,6 +445,9 @@ struct zfcp_adapter { | |||
445 | spinlock_t req_q_lock; /* for operations on queue */ | 445 | spinlock_t req_q_lock; /* for operations on queue */ |
446 | int req_q_pci_batch; /* SBALs since PCI indication | 446 | int req_q_pci_batch; /* SBALs since PCI indication |
447 | was last set */ | 447 | was last set */ |
448 | ktime_t req_q_time; /* time of last fill level change */ | ||
449 | u64 req_q_util; /* for accounting */ | ||
450 | spinlock_t qdio_stat_lock; | ||
448 | u32 fsf_req_seq_no; /* FSF cmnd seq number */ | 451 | u32 fsf_req_seq_no; /* FSF cmnd seq number */ |
449 | wait_queue_head_t request_wq; /* can be used to wait for | 452 | wait_queue_head_t request_wq; /* can be used to wait for |
450 | more avaliable SBALs */ | 453 | more avaliable SBALs */ |