From Jeff Layton <jlayton(a)redhat.com>:
Jeff Layton has uploaded this change for review. (
https://review.gerrithub.io/428032
Change subject: SAL: convert current_grace to struct timespec
......................................................................
SAL: convert current_grace to struct timespec
This allows us to also switch to using CLOCK_MONOTONIC, which guards
against clock jumps and skew. We really do want to base the grace
period on "absolute" time and not be affected by someone monkeying with
the host's clock.
This means that we need to take the grace_mutex a bit earlier when
attempting to lift the grace period, but that also allows us to
simplify nfs4_lift_grace_locked since we can assume that the mutex
was held over the timeout check.
Change-Id: I837bab37c447a9cb9e114b47cd25de8344c8609c
Signed-off-by: Jeff Layton <jlayton(a)redhat.com>
---
M src/SAL/nfs4_recovery.c
1 file changed, 28 insertions(+), 17 deletions(-)
git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/32/428032/1
--
To view, visit
https://review.gerrithub.io/428032
To unsubscribe, or for help writing mail filters, visit
https://review.gerrithub.io/settings
Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-MessageType: newchange
Gerrit-Change-Id: I837bab37c447a9cb9e114b47cd25de8344c8609c
Gerrit-Change-Number: 428032
Gerrit-PatchSet: 1
Gerrit-Owner: Jeff Layton <jlayton(a)redhat.com>