Whamcloud - gitweb
LUDOC-296 protocol: Reorganize the document ot be top-down
[doc/protocol.git] / ldlm_reply.txt
1 LDLM Reply
2 ^^^^^^^^^^
3 [[struct-ldlm-reply]]
4
5 The 'ldlm_reply' structure is the reciprocal of the 'ldlm_request'.
6
7 ----
8 struct ldlm_reply {
9         __u32 lock_flags;
10         __u32 lock_padding;     /* also fix lustre_swab_ldlm_reply */
11         struct ldlm_lock_desc lock_desc;
12         struct lustre_handle lock_handle;
13         __u64  lock_policy_res1;
14         __u64  lock_policy_res2;
15 };
16 ----
17
18 It closely resembles the 'lock_request' in its structure. In this case
19 it is reporting back to the initiator of the request (in the
20 'lock_desc') both the lock that was actually granted, if any, and lock
21 server's (possibly) updated value for what was being requested.
22