From: Omar Sandoval <osandov@osandov.com>
To: Klaus Kusche <klaus.kusche@computerix.info>
Cc: linux-block@vger.kernel.org, linux-ide@vger.kernel.org,
linux-scsi@vger.kernel.org
Subject: Re: Subsystem responsible for /proc/diskstats timings?
Date: Wed, 12 Sep 2018 18:26:40 -0700 [thread overview]
Message-ID: <20180913012640.GB32250@vader> (raw)
In-Reply-To: <fdbf1284-a111-f99b-30e4-4d35a35b119c@computerix.info>
On Sun, Sep 09, 2018 at 10:03:35AM +0200, Klaus Kusche wrote:
>
> Hello,
>
> Which subsystem could be responsible for
>
> https://bugzilla.kernel.org/show_bug.cgi?id=200857
>
> ("4.18 regression: /proc/diskstats: I/O busy time not updated correctly")?
>
> This is for AHCI SATA disks (/dev/sda, /dev/sdb, ...),
> and the busy time reported by /proc/diskstats for SSD's is still (4.18.6)
> to low by at least a factor of 20 (!).
>
> Many thanks in advance for your help!
This was probably 522a777566f5 ("block: consolidate struct request
timestamp fields"). Not the proper fix, but can you try the following:
diff --git a/block/blk-core.c b/block/blk-core.c
index 4dbc93f43b38..663430090281 100644
--- a/block/blk-core.c
+++ b/block/blk-core.c
@@ -2738,7 +2738,7 @@ void blk_account_io_done(struct request *req, u64 now)
struct hd_struct *part;
int cpu;
- duration = nsecs_to_jiffies(now - req->start_time_ns);
+ duration = max(nsecs_to_jiffies(now - req->start_time_ns), 1);
cpu = part_stat_lock();
part = req->part;
prev parent reply other threads:[~2018-09-13 6:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-09 8:03 Subsystem responsible for /proc/diskstats timings? Klaus Kusche
2018-09-13 1:26 ` Omar Sandoval [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180913012640.GB32250@vader \
--to=osandov@osandov.com \
--cc=klaus.kusche@computerix.info \
--cc=linux-block@vger.kernel.org \
--cc=linux-ide@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox