]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: set the loner to true for LOCK_EXCL_XSYN 54911/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:22:04 +0000 (11:22 +0800)
commit7347f88bde0c641f182c99678acb39dad4c7ed04
tree67d6111cdcbce8ba32fdbd8e4ecc18f2a15404cf
parentf92317e58b090cf3a7af00921cf9fed354bade68
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