Madhu Thorat has uploaded this change for review. ( https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/496788 ) Change subject: In nfs4_op_lock() call state_del_locked() only for new lock state ...................................................................... In nfs4_op_lock() call state_del_locked() only for new lock state Currently in nfs4_op_lock() if state_lock() fails, we call state_del_locked() if arg_LOCK4->locker.new_lock_owner is true. But when arg_LOCK4->locker.new_lock_owner is true, we may or may not add a new lock state. With this change, if there is a new lock state added, then only we call state_del_locked() if state_lock() fails. Change-Id: I57b94b5592ca3a4d31c094edba6f7afc443a4d43 Signed-off-by: Madhu Thorat <madhu.punjabi@in.ibm.com> --- M src/Protocols/NFS/nfs4_op_lock.c 1 file changed, 4 insertions(+), 1 deletion(-) git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/88/496788/1 -- To view, visit https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/496788 To unsubscribe, or for help writing mail filters, visit https://review.gerrithub.io/settings Gerrit-Project: ffilz/nfs-ganesha Gerrit-Branch: next Gerrit-Change-Id: I57b94b5592ca3a4d31c094edba6f7afc443a4d43 Gerrit-Change-Number: 496788 Gerrit-PatchSet: 1 Gerrit-Owner: Madhu Thorat <madhu.punjabi@in.ibm.com> Gerrit-MessageType: newchange