]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
aoe: use high-resolution RTTs with fallback to low-res
authorEd Cashin <ecashin@coraid.com>
Fri, 9 Nov 2012 03:05:16 +0000 (14:05 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 14 Nov 2012 04:55:28 +0000 (15:55 +1100)
commita45312f3f637e382ec36425f58fcd4ce1c658e97
tree9834c1c4d95ee8671dc4a1ed6a0a3bda28749327
parentd5ff2945d5e6a9cc9b21f6cdc479d5e51fdfac3f
aoe: use high-resolution RTTs with fallback to low-res

These changes improve the accuracy of the decision about whether it's time
to retransmit an AoE command by using the microsecond-resolution
gettimeofday instead of jiffies.

Because the system time can jump suddenly, the decision reverts to using
jiffies if the high-resolution time difference is relatively large.

Signed-off-by: Ed Cashin <ecashin@coraid.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/block/aoe/aoe.h
drivers/block/aoe/aoecmd.c