diff options
author | Omar Sandoval <osandov@fb.com> | 2018-09-22 01:44:34 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-09-22 04:26:59 +0200 |
commit | b57e99b4b8b0ebdf9707424e7ddc0c392bdc5fe6 (patch) | |
tree | 403679b552a10c8258d4375c561421b367504781 /mm/gup.c | |
parent | Merge branch 'nvme-4.19' of git://git.infradead.org/nvme into for-linus (diff) | |
download | linux-b57e99b4b8b0ebdf9707424e7ddc0c392bdc5fe6.tar.xz linux-b57e99b4b8b0ebdf9707424e7ddc0c392bdc5fe6.zip |
block: use nanosecond resolution for iostat
Klaus Kusche reported that the I/O busy time in /proc/diskstats was not
updating properly on 4.18. This is because we started using ktime to
track elapsed time, and we convert nanoseconds to jiffies when we update
the partition counter. However, this gets rounded down, so any I/Os that
take less than a jiffy are not accounted for. Previously in this case,
the value of jiffies would sometimes increment while we were doing I/O,
so at least some I/Os were accounted for.
Let's convert the stats to use nanoseconds internally. We still report
milliseconds as before, now more accurately than ever. The value is
still truncated to 32 bits for backwards compatibility.
Fixes: 522a777566f5 ("block: consolidate struct request timestamp fields")
Cc: stable@vger.kernel.org
Reported-by: Klaus Kusche <klaus.kusche@computerix.info>
Signed-off-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'mm/gup.c')
0 files changed, 0 insertions, 0 deletions