]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: notify the xattr_version to replica MDSes 46472/head
authorXiubo Li <xiubli@redhat.com>
Wed, 1 Jun 2022 02:32:58 +0000 (10:32 +0800)
committerXiubo Li <xiubli@redhat.com>
Thu, 16 Jun 2022 13:01:02 +0000 (21:01 +0800)
commit363ee982f6513af2c018f14a02b73338fa9fc03b
treecaf6267b9f6717cfe4e83b5022531f812dab4ff4
parentbcc078c8bf921446048c405d4f2d3d658b4870f7
mds: notify the xattr_version to replica MDSes

When one client changes a xattr's value in the auth MDS, when replying
to the client the MDS possibly will drop the increased xattr_version
and new value in the reply message if no 'Xs' caps will be issued to
the client together.

And when the client wants to get this xattr's value, and if it sends
the request to a replicated MDS, since the replicated MDS still has
the old value of the xattr_version, and then the client will drop the
xattr value since xattr_version is not changed.

We need to notify the xattr_version to the replicated MDSes together
with the xattrs when notifying the lock state.

Fixes: https://tracker.ceph.com/issues/55331
Signed-off-by: Xiubo Li <xiubli@redhat.com>
src/mds/CInode.cc