]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: ensure that we send the btime in cap messages 45163/head
authorJeff Layton <jlayton@redhat.com>
Tue, 10 Aug 2021 14:51:34 +0000 (10:51 -0400)
committerDan van der Ster <daniel.vanderster@cern.ch>
Fri, 25 Feb 2022 08:29:03 +0000 (09:29 +0100)
commit25b062b3c1e9c7e748933ec1c2496a94c748d02a
tree7689f346b7f539c7254e859a526308c9cb5b6e63
parent5508fece9a4a420cb49055e8faa0910843a03f75
mds: ensure that we send the btime in cap messages

While troubleshooting a different problem, I noticed that the kclient
would occasionally not report the btime in statx calls. It's most
evident in the case where two different clients are alternately writing
to the same file, and another task on one of them is repeatedly issuing
statx() calls against it.

The problem is that we're not correctly populating the MClientCaps btime
field when issuing caps, and that causes the MDS to incorrectly send a
zeroed-out btime field.

Fixes: https://tracker.ceph.com/issues/52123
Signed-off-by: Jeff Layton <jlayton@redhat.com>
(cherry picked from commit 9c33a590466f7c553ea6bc62e90dc67728fa1e26)
src/mds/CInode.cc