ofir vainshtein has uploaded this change for review. (
https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/1234085?usp=email )
Change subject: Move STATELOCK acquisition out of state_test and
process_blocked_lock_upcall
......................................................................
Move STATELOCK acquisition out of state_test and process_blocked_lock_upcall
The STATELOCK is now acquired by the callers of state_test and process_blocked_lock_upcall
rather than inside these functions. This ensures that the lock is held consistently across
operations involving state objects.
Also fixed state_test access of lock_entry fields without lock
Change-Id: I82ba6f828e7b2be73580f967b0a3b7c775a69e89
Signed-off-by: Ofir Vainshtein <ofirvins(a)google.com>
---
M src/Protocols/NFS/nfs4_op_lockt.c
M src/SAL/state_async.c
M src/SAL/state_lock.c
3 files changed, 14 insertions(+), 16 deletions(-)
git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/85/1234085/1
--
To view, visit
https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/1234085?usp=email
To unsubscribe, or for help writing mail filters, visit
https://review.gerrithub.io/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-Change-Id: I82ba6f828e7b2be73580f967b0a3b7c775a69e89
Gerrit-Change-Number: 1234085
Gerrit-PatchSet: 1
Gerrit-Owner: ofir vainshtein <ofirvins(a)google.com>