From 7ba7a4b27d124f4ee16fe4776a4670cd5b0160c4 Mon Sep 17 00:00:00 2001 From: Xavier Hernandez Date: Wed, 15 Jun 2016 14:42:19 +0200 Subject: locks: added inodelk/entrylk contention upcall notifications The locks xlator now is able to send a contention notification to the current owner of the lock. This is only a notification that can be used to improve performance of some client side operations that might benefit from extended duration of lock ownership. Nothing is done if the lock owner decides to ignore the message and to not release the lock. For forced release of acquired resources, leases must be used. Change-Id: I7f1ad32a0b4b445505b09908a050080ad848f8e0 Signed-off-by: Xavier Hernandez --- rpc/xdr/src/glusterfs4-xdr.x | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'rpc/xdr/src/glusterfs4-xdr.x') diff --git a/rpc/xdr/src/glusterfs4-xdr.x b/rpc/xdr/src/glusterfs4-xdr.x index 7396b566fa7..ef0cfde0802 100644 --- a/rpc/xdr/src/glusterfs4-xdr.x +++ b/rpc/xdr/src/glusterfs4-xdr.x @@ -86,3 +86,20 @@ struct gfs4_namelink_req { string bname<>; opaque xdata<>; }; + +struct gfs4_inodelk_contention_req { + opaque gfid[16]; + struct gf_proto_flock flock; + unsigned int pid; + string domain<>; + opaque xdata<>; +}; + +struct gfs4_entrylk_contention_req { + opaque gfid[16]; + unsigned int type; + unsigned int pid; + string name<>; + string domain<>; + opaque xdata<>; +}; -- cgit