]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: fix filelock state when Fsc is issued 35842/head
authorXiubo Li <xiubli@redhat.com>
Tue, 16 Jun 2020 00:01:28 +0000 (20:01 -0400)
committerVicente Cheng <freeze.bilsted@gmail.com>
Tue, 30 Jun 2020 07:31:05 +0000 (07:31 +0000)
commit4677ef5e8d56cc67f2218ba0cd1a97eb67812407
tree2f2a143845f1635e94ab74aa58135f7d362ce2bc
parent7b12a033c2fbeb415846ddda46d91eeab998e7a4
mds: fix filelock state when Fsc is issued

LOCK_MIX is is a transition state for muti MDSs could do read/write
at the same time, but the Fcb caps are not allowed.

When the Fsc caps are issued, the lock state should be excl.

Fixes: https://tracker.ceph.com/issues/45935
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit df682263d3f302333cdd76484bd56902133ed82f)
src/mds/CInode.cc