Whamcloud - gitweb
LUDOC-297 protocol: Update protocol document
[doc/protocol.git] / ldlm_gl_callback.txt
index 24564c0..c0ea49e 100644 (file)
@@ -5,27 +5,24 @@ RPC 104: LDLM_GL_CALLBACK
 An RPC that assists with getting a lock back from an entity that has
 it.
 
-.LDLM_GL_CALLBACK Generic Packet Structure
-image::ldlm-gl-callback-generic.png["LDLM_GL_CALLBACK Generic Packet Structure",height=100]
+.LDLM_GL_CALLBACK Request Packet Structure
+image::ldlm-gl-callback-request.png["LDLM_GL_CALLBACK Request Packet Structure",height=50]
 
 //////////////////////////////////////////////////////////////////////
-The ldlm-gl-callback-generic.png diagram resemgles this text
+The ldlm-gl-callback-request.png diagram resemgles this text
 art:
 
        LDLM_GL_CALLBACK:
       --request---------------------
       | ptlrpc_body | ldlm_request |
       ------------------------------
-      --reply------------------
-      | ptlrpc_body | ost_lvb |
-      -------------------------
 //////////////////////////////////////////////////////////////////////
 
 The request RPC resembles the simplest LDLM_ENQUEUE RPC, but only
 identifies the relevant resource that the destination entity already
 had a lock on. It asks the recipient to flush its dirty write cache,
 and notify the requester of size and time attributes once that is
-done.  The reply updates the attributes on the requester.
+done.
 
 'ptlrpc_body'::
 RPC descriptor. <<struct-ptlrpc-body>>
@@ -34,6 +31,24 @@ RPC descriptor. <<struct-ptlrpc-body>>
 Description of the lock being requested. Which resource is the target,
 what lock is current, and what lock desired. <<struct-ldlm-request>>
 
+.LDLM_GL_CALLBACK Reply Packet Structure
+image::ldlm-gl-callback-reply.png["LDLM_GL_CALLBACK Reply Packet Structure",height=50]
+
+//////////////////////////////////////////////////////////////////////
+The ldlm-gl-callback-reply.png diagram resemgles this text
+art:
+
+       LDLM_GL_CALLBACK:
+      --reply------------------
+      | ptlrpc_body | ost_lvb |
+      -------------------------
+//////////////////////////////////////////////////////////////////////
+
+The reply updates the attributes on the requester.
+
+'ptlrpc_body'::
+RPC descriptor. <<struct-ptlrpc-body>>
+
 'ost_lvb'::
 Attribute data associated with a resource on an OST. <<struct-ost-lvb>>