Whamcloud - gitweb
LUDOC-297 protocol: Update protocol document
[doc/protocol.git] / ldlm_cancel.txt
index 1f0a254..6830bb7 100644 (file)
@@ -4,27 +4,39 @@ RPC 103: LDLM_CANCEL
 
 An RPC that notifies an entity that a requested lock is no longer needed.
 
-.LDLM_CANCEL Generic Packet Structure
-image::ldlm-cancel-generic.png["LDLM_CANCEL Generic Packet Structure",height=100]
+.LDLM_CANCEL Request Packet Structure
+image::ldlm-cancel-request.png["LDLM_CANCEL Request Packet Structure",height=50]
 
 //////////////////////////////////////////////////////////////////////
-The ldlm-cancel-generic.png diagram resembles this text
+The ldlm-cancel-request.png diagram resembles this text
 art:
 
        LDLM_CANCEL:
       --request---------------------
       | ptlrpc_body | ldlm_request |
       ------------------------------
-      --reply--------
-      | ptlrpc_body |
-      ---------------
 //////////////////////////////////////////////////////////////////////
 
 'ptlrpc_body'::
-RPC descriptor.
+RPC descriptor. <<struct-ptlrpc-body>>
 
 'ldlm_request'::
 The request RPC identifies the lock being canceled. Only the first
 'lock_handle' field is used. The rest of the 'ldlm_request' sturcture
-is not used.
+is not used. <<struct-ldlm-request>>
+
+.LDLM_CANCEL Reply Packet Structure
+image::ldlm-cancel-reply.png["LDLM_CANCEL Reply Packet Structure",height=50]
+
+//////////////////////////////////////////////////////////////////////
+The ldlm-cancel-reply.png diagram resembles this text
+art:
 
+       LDLM_CANCEL:
+      --reply--------
+      | ptlrpc_body |
+      ---------------
+//////////////////////////////////////////////////////////////////////
+
+'ptlrpc_body'::
+RPC descriptor. <<struct-ptlrpc-body>>