]> git.karo-electronics.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>
Fri, 9 Nov 2012 03:09:12 +0000 (14:09 +1100)
commitf8c4ad10951c59183a2f4d1749e3d2b40e690a68
tree6e15f883951a149260eb03ac0c58bbf8e886a85f
parent6363f72fd408e8c8b413e04d54240c271a685c25
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