>From <madhu.punj...@in.ibm.com>:

madhu.punj...@in.ibm.com has uploaded this change for review. ( 
https://review.gerrithub.io/367417


Change subject: NLM: Use caller name when SM_NOTIFY sent by localhost
......................................................................

NLM: Use caller name when SM_NOTIFY sent by localhost

Currently when SM_NOTIFY request is sent by a NFS client,
the requesting client IP is used and we release locks
for that client IP. This works fine as the caller name
in the SM_NOTIFY request corresponds to the name of the NFS client
and the IP sending the request is the client IP.
But if there was a NFS client which had acquired locks and if
the client is dead, the server can release locks for that client by
simulating the SM_NOTIFY request for the client by forming a
SM_NOTIFY request with the caller name of the client. But with
current implementation this case doesn't get handled as the current
implementation checks if locks were acquired by the IP which has
sent the SM_NOTIFY request.
To fix this we now check if the requesting IP is for 'localhost'
and the IP for the caller name in SM_NOTIFY doesn't match
with IP for 'localhost' then use the IP for the caller name as the
requesting IP.

Change-Id: Ib5fab3ef7291d5b25ee3fb7c8754e2809fc5d53a
Signed-off-by: Madhu Thorat <madhu.punj...@in.ibm.com>
---
M src/Protocols/NLM/nlm_Sm_Notify.c
1 file changed, 97 insertions(+), 0 deletions(-)



  git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha 
refs/changes/17/367417/1
-- 
To view, visit https://review.gerrithub.io/367417
To unsubscribe, visit https://review.gerrithub.io/settings

Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib5fab3ef7291d5b25ee3fb7c8754e2809fc5d53a
Gerrit-Change-Number: 367417
Gerrit-PatchSet: 1
Gerrit-Owner: madhu.punj...@in.ibm.com
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Nfs-ganesha-devel mailing list
Nfs-ganesha-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel

Reply via email to