]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: set the loner to true for LOCK_EXCL_XSYN 54912/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 04:04:18 +0000 (12:04 +0800)
commit20515bce097f2bc0990f770d97593083c0ad1091
treeed0536ab7e758c05593e9f4ac986f5ef2987ed96
parenta28aed6037399e2b2b3d0ba5ff408f99da20207c
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