]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
aoe: use high-resolution RTTs with fallback to low-res
authorEd Cashin <ecashin@coraid.com>
Thu, 15 Nov 2012 02:38:51 +0000 (13:38 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 15 Nov 2012 06:32:21 +0000 (17:32 +1100)
commit86cc20a067f46b209213a52f7a02b238ad1868e5
treeac5d0f7019488ebb5cc9582827dc3ea7dd387220
parentf38112bc12ab30aef81c97577d6933fca3769e20
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.
Otherwise the AoE targets could be considered failed inappropriately.

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