Messages in this thread | | | Subject | Re: [PATCH] scsi: lpfc: use monotonic timestamps for statistics | From | "Martin K. Petersen" <> | Date | Tue, 26 Jun 2018 12:00:54 -0400 |
| |
Arnd,
> The get_seconds() function suffers from a possible overflow in 2038 or > 2106, as well as jitter due to settimeofday or leap second updates, > and is deprecated. > > As we are interested in elapsed time only, using ktime_get_seconds() > to read the CLOCK_MONOTONIC timebase is ideal here. This also lets us > remove the hack that tries to deal with get_seconds() going slightly > backwards, which cannot happen with montonic timestamps.
Applied to 4.19/scsi-queue. Thanks!
-- Martin K. Petersen Oracle Linux Engineering
| |