Example: In nlm4_test_fd_resume() if nfs_lk() fails we reply error to nlm client and return -1 to the caller. The caller would also reply error to the client. We have similar cases at nlm4_cancel_fd_resume nlm4_lock_fd_resume and nlm4_unlock_fd_resume.
Need a patch id or url to gerrit to test this. Cannot verify what changes are made to resolve this bug.
http://review.gluster.com/#change,3462 you can find the patches in gerrit also