From: "Martin K. Petersen" <martin.petersen@oracle.com>
To: Arnd Bergmann <arnd@arndb.de>
Cc: Vasu Dev <vasu.dev@intel.com>,
"James E.J. Bottomley" <jejb@linux.vnet.ibm.com>,
"Martin K. Petersen" <martin.petersen@oracle.com>,
y2038@lists.linaro.org, fcoe-devel@open-fcoe.org,
linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] scsi: libfc: fix seconds_since_last_reset calculation
Date: Mon, 20 Jun 2016 22:05:24 -0400 [thread overview]
Message-ID: <yq1r3br47q3.fsf@sermon.lab.mkp.net> (raw)
In-Reply-To: <20160617154737.633440-1-arnd@arndb.de> (Arnd Bergmann's message of "Fri, 17 Jun 2016 17:47:25 +0200")
>>>>> "Arnd" == Arnd Bergmann <arnd@arndb.de> writes:
Arnd> The fc_get_host_stats() function contains a complex conversion
Arnd> from jiffies to timespec to seconds. As we try to get rid of uses
Arnd> of struct timespec, we can clean this up and replace it with a
Arnd> simpler computation.
Arnd> Simply dividing the difference in jiffies by HZ is not only much
Arnd> more efficient, it also avoids a problem that causes the
Arnd> seconds_since_last_reset value to be incorrect if jiffies has
Arnd> overrun since the 'boot_time' value was recorded.
Applied to 4.8/scsi-queue.
--
Martin K. Petersen Oracle Linux Engineering
prev parent reply other threads:[~2016-06-21 2:05 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-17 15:47 [PATCH] scsi: libfc: fix seconds_since_last_reset calculation Arnd Bergmann
2016-06-20 13:54 ` Bart Van Assche
2016-06-20 14:50 ` Arnd Bergmann
2016-06-20 14:58 ` Bart Van Assche
2016-06-21 2:05 ` Martin K. Petersen [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=yq1r3br47q3.fsf@sermon.lab.mkp.net \
--to=martin.petersen@oracle.com \
--cc=arnd@arndb.de \
--cc=fcoe-devel@open-fcoe.org \
--cc=jejb@linux.vnet.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=vasu.dev@intel.com \
--cc=y2038@lists.linaro.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