drivers/md/dm-stats.c:

static void dm_stat_round(struct dm_stat *s, struct dm_stat_shared *shared,
                          struct dm_stat_percpu *p)
{
        /*
         * This is racy, but so is part_round_stats_single.
         */
        unsigned long long now, difference;
        unsigned in_flight_read, in_flight_write;

        if (likely(!(s->stat_flags & STAT_PRECISE_TIMESTAMPS)))
                now = jiffies;
        else
                now = ktime_to_ns(ktime_get());

Should that be ktime_to_us()?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1790181

Title:
  /proc/diskstats shows weird values

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1790181/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to