ofir vainshtein has uploaded this change for review.

View Change

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@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 change 1234085. To unsubscribe, or for help writing mail filters, visit settings.

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@google.com>