blkdev: Refactoring block io latency histogram codes
authorHyojun Kim <hyojun@google.com>
Thu, 21 Dec 2017 17:57:41 +0000 (09:57 -0800)
committerHyojun Kim <hyojun@google.com>
Wed, 3 Jan 2018 21:16:40 +0000 (21:16 +0000)
commit11537d5ac91a51571027818b98a99f43caaacb1b
tree49e22b9b9d8b19eacce8a10c74febe041cb97ebf
parent4406671f9ec830ed2d41bffe28b801daab0bff3b
blkdev: Refactoring block io latency histogram codes

The current io_latency_state structure includes entries for read
and write requests. There are special types of write commands
such as sync and discard (trim) commands, and the current
implementation is not general enough if we want to separate
latency histogram for such special commands.

This change makes io_latency_state structure request-type neutral.
It also changes to print the latency average.

Signed-off-by: Hyojun Kim <hyojun@google.com>
block/blk-core.c
drivers/mmc/core/core.c
drivers/scsi/ufs/ufshcd.c
drivers/scsi/ufs/ufshcd.h
include/linux/blkdev.h
include/linux/mmc/host.h