Whamcloud - gitweb
56948b3f97c16cb1bc030ea0c0836b30c1cf00be
[doc/protocol.git] / struct_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 [source,c]
8 ----
9 struct ldlm_reply {
10         __u32 lock_flags;
11         __u32 lock_padding;     /* also fix lustre_swab_ldlm_reply */
12         struct ldlm_lock_desc lock_desc;
13         struct lustre_handle lock_handle;
14         __u64  lock_policy_res1;
15         __u64  lock_policy_res2;
16 };
17 ----
18
19 It closely resembles the 'lock_request' in its structure. In this case
20 it is reporting back to the initiator of the request (in the
21 'lock_desc') both the lock that was actually granted, if any, and lock
22 server's (possibly) updated value for what was being requested.
23