Dadang NH has uploaded this change for review.

View Change

NLM: send the new NSM state number in SM_NOTIFY

send_sm_notify() filled notify_args.state with recov_nsm_state, the
state read back from the recovery database, i.e. the state from before
this restart. NSM requires SM_NOTIFY to carry the rebooted host's new
state. A Linux client that already knows the old value (for example 0
after the first restart) treats the notification as stale and does not
reclaim its locks.

Use cur_nsm_state, the state number of this server instance.

Change-Id: I444a2fecae25604c4e6c73d6515c4a51aa8f1345
Signed-off-by: Dadang NH <project@dadangnh.com>
---
M src/Protocols/NLM/nsm.c
1 file changed, 7 insertions(+), 1 deletion(-)

git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/33/1259633/1

To view, visit change 1259633. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newchange
Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-Change-Id: I444a2fecae25604c4e6c73d6515c4a51aa8f1345
Gerrit-Change-Number: 1259633
Gerrit-PatchSet: 1
Gerrit-Owner: Dadang NH <project@dadangnh.com>