NVMe: Disk IO statistics

Add io stats accounting for bio requests so nvme block devices show
useful disk stats.

Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
This commit is contained in:
Keith Busch
2013-05-29 15:59:39 -06:00
committed by Matthew Wilcox
parent 063a8096f3
commit 6198221fa0
2 changed files with 29 additions and 0 deletions

View File

@@ -572,6 +572,7 @@ struct nvme_iod {
int offset; /* Of PRP list */
int nents; /* Used in scatterlist */
int length; /* Of data, in bytes */
unsigned long start_time;
dma_addr_t first_dma;
struct scatterlist sg[0];
};