>From Jeff Layton <jlay...@redhat.com>:

Jeff Layton has uploaded this change for review. ( 
https://review.gerrithub.io/390309


Change subject: NFS: rework grace period handling
......................................................................

NFS: rework grace period handling

The current method leaves open the potential for races. We also need to
coordinate the lifting of the grace period with the cleanup/cutover of
the recovery db.

Protect changes to current_grace with the grace_mutex. We can still do
fetches against it for grace checks without the mutex however since
those are not ordered in any way with other activities. Give a
current_grace value of 0 a special meaning that the grace period
is done.

When we go to lift the grace period clean out the recovery db, and
set current_grace to 0.

Change-Id: Ia396978971d4a07ff42fd9dbd5da65c1af0450ba
Signed-off-by: Jeff Layton <jlay...@redhat.com>
---
M src/MainNFSD/nfs_admin_thread.c
M src/MainNFSD/nfs_init.c
M src/MainNFSD/nfs_reaper_thread.c
M src/Protocols/NLM/nlm_Lock.c
M src/Protocols/NLM/nlm_Share.c
M src/Protocols/NLM/nlm_Unshare.c
M src/SAL/nfs4_recovery.c
M src/include/sal_functions.h
8 files changed, 76 insertions(+), 63 deletions(-)



  git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha 
refs/changes/09/390309/1
-- 
To view, visit https://review.gerrithub.io/390309
To unsubscribe, visit https://review.gerrithub.io/settings

Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia396978971d4a07ff42fd9dbd5da65c1af0450ba
Gerrit-Change-Number: 390309
Gerrit-PatchSet: 1
Gerrit-Owner: Jeff Layton <jlay...@redhat.com>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Nfs-ganesha-devel mailing list
Nfs-ganesha-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel

Reply via email to