]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mds: fix filelock state when Fsc is issued
authorXiubo Li <xiubli@redhat.com>
Tue, 16 Jun 2020 00:01:28 +0000 (20:01 -0400)
committerXiubo Li <xiubli@redhat.com>
Tue, 16 Jun 2020 00:19:14 +0000 (20:19 -0400)
commitdf682263d3f302333cdd76484bd56902133ed82f
treeb6d32f46ba8a1f4ad2d847e8fb6115bf233661ec
parent04553e8822a7d353f38a69248721b3e2b79fdb8b
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>
src/mds/CInode.cc