]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: set the loner to true for LOCK_EXCL_XSYN 54669/head
authorXiubo Li <xiubli@redhat.com>
Mon, 27 Nov 2023 07:55:42 +0000 (15:55 +0800)
committerXiubo Li <xiubli@redhat.com>
Mon, 27 Nov 2023 07:59:19 +0000 (15:59 +0800)
commit1766a354278706eea560cb989796cc97dbef8b4b
treece6e1d06c4fddb3b1c3b1bd2563f6e9ed1fc3b61
parent83001860de1b033df6f09b76d5faf0362ad7f0ec
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>
src/mds/locks.c