On Tue, 2019-04-23 at 15:24 +0000, fanzi2009(a)hotmail.com wrote:
Hi Daniel,
I have another idea for reclaim lock in nfs-ganesha cluster. Just remove all the logic
judgement on lock request in nfs-ganesha no matter it is in grace period or not.
nfs-ganesha just redirect the lock command to Ceph cluster. Ceph cluster will get clientid
and open owner, so Ceph have enough information to grant the lock or not. If the client
has been granted for the lock before, so the lock reclaim will also be successful. If the
lock request is coming from other client, it will failed. If so, we don't need the
grace period at all and don't need to put other server into grace periold too.
In general, that logic exists to handle corner cases relating to network
partitions and multiple server reboots. I suggest you work out how that
will handle those situations if you plan to pursue this.
See:
https://tools.ietf.org/html/rfc5661#section-8.4.3
--
Jeff Layton <jlayton(a)poochiereds.net>