]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: set the loner to true for LOCK_EXCL_XSYN 54910/head
authorXiubo Li <xiubli@redhat.com>
Mon, 27 Nov 2023 07:55:42 +0000 (15:55 +0800)
committerXiubo Li <xiubli@redhat.com>
Fri, 15 Dec 2023 03:17:40 +0000 (11:17 +0800)
commitaa469f11c1a96a024bf1e66d092456472c103825
treed400f74c97d4a818ac9d2bdbb635d1c24fde37fb
parent1f2f55109dc1ed2dc2dda9de1db3c70923ba0dfd
mds: set the loner to true for LOCK_EXCL_XSYN

For filelock when in LOCK_EXCL_XSYN state the non-loner clients
should be issued empty caps, but since the loner of this state
is set to false and it could make the Locker to issue the Fcb caps
to them, which is incorrect.

This fix will just set the loner to true.

Fixes: https://tracker.ceph.com/issues/63646
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit 1766a354278706eea560cb989796cc97dbef8b4b)
src/mds/locks.c