]> git.baikalelectronics.ru Git - kernel.git/commit
block/diskstats: replace time_in_queue with sum of request times
authorKonstantin Khlebnikov <khlebnikov@yandex-team.ru>
Wed, 25 Mar 2020 13:07:08 +0000 (16:07 +0300)
committerJens Axboe <axboe@kernel.dk>
Wed, 25 Mar 2020 14:49:12 +0000 (08:49 -0600)
commit248598618a6d4d567c6cb6ad31727f6d628a064c
treeec3faf2ab2c492b620cbae8cdfd040776b2a47f3
parent135272a0e527d11da6d5e0781bb40c7e729e21dd
block/diskstats: replace time_in_queue with sum of request times

Column "time_in_queue" in diskstats is supposed to show total waiting time
of all requests. I.e. value should be equal to the sum of times from other
columns. But this is not true, because column "time_in_queue" is counted
separately in jiffies rather than in nanoseconds as other times.

This patch removes redundant counter for "time_in_queue" and shows total
time of read, write, discard and flush requests.

Signed-off-by: Konstantin Khlebnikov <khlebnikov@yandex-team.ru>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio.c
block/blk-core.c
block/genhd.c
include/linux/genhd.h