Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1427208
| From | "Martin K. Petersen" <martin.petersen@oracle.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] scsi: libfc: fix seconds_since_last_reset calculation |
| Date | 2016-06-21 04:10 +0200 |
| Message-ID | <rMjiy-7VH-9@gated-at.bofh.it> (permalink) |
| References | <rL4bV-8nW-43@gated-at.bofh.it> |
| Organization | Oracle Corporation |
>>>>> "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
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH] scsi: libfc: fix seconds_since_last_reset calculation Arnd Bergmann <arnd@arndb.de> - 2016-06-17 17:50 +0200 Re: [PATCH] scsi: libfc: fix seconds_since_last_reset calculation Arnd Bergmann <arnd@arndb.de> - 2016-06-20 16:50 +0200 Re: [PATCH] scsi: libfc: fix seconds_since_last_reset calculation "Martin K. Petersen" <martin.petersen@oracle.com> - 2016-06-21 04:10 +0200
csiph-web