lkml.org 
[lkml]   [2015]   [May]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [Y2038] [PATCH] aoe: Use 64-bit timestamp in frame
On 05/13/2015 04:04 AM, Arnd Bergmann wrote:
...
> Shall we do the ktime_get_us() approach then? It still requires a
> 32-bit division like do_gettimeofday(), so it will not be as efficient
> as the shifted nanoseconds.

It's no worse, though, right? So I think it's a good transition. Further
optimization could be attempted in an experimental branch at some
point for easy testing.

> As for the aoe_deadsecs computation, converting the aoe_deadsec module
> parameter into scaled nanoseconds can be done at module load time, and
> that way you also save the integer division you currently do for each
> frame in rexmit_timer() to turn the microseconds into seconds. Arnd

That's true, but the "secs" in the identifier stands for "seconds". It would
be misleading to have something called seconds be scaled nanoseconds.
And we could just use another variable if it weren't for the fact that this
module parameter is exposed through sysfs and can be changed through
that mechanism at any time.

--
Ed


\
 
 \ /
  Last update: 2015-05-14 03:01    [W:0.039 / U:0.152 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site