pradeepthomas(a)gmail.com has uploaded this change for review. (
https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/516434 )
Change subject: Stats - Prevent RPC time from going negative.
......................................................................
Stats - Prevent RPC time from going negative.
CLOCK_REALTIME can go backwards at times making RPC latency
computation to go negative. Using actual times and doing timespec_diff
makes sure that negative times are never used.
Change-Id: I5009b9f20b3277448a2246112cdc14233e122f28
Signed-off-by: Pradeep <pradeepthomas(a)gmail.com>
---
M src/MainNFSD/nfs_worker_thread.c
M src/Protocols/NFS/nfs4_Compound.c
M src/include/fsal_api.h
M src/include/nfs_proto_data.h
M src/include/server_stats.h
M src/support/server_stats.c
6 files changed, 24 insertions(+), 21 deletions(-)
git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/34/516434/1
--
To view, visit
https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/516434
To unsubscribe, or for help writing mail filters, visit
https://review.gerrithub.io/settings
Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-Change-Id: I5009b9f20b3277448a2246112cdc14233e122f28
Gerrit-Change-Number: 516434
Gerrit-PatchSet: 1
Gerrit-Owner: pradeepthomas(a)gmail.com
Gerrit-MessageType: newchange