]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
client: improve the code of setattr for atime/mtime
authorXiubo Li <xiubli@redhat.com>
Mon, 11 Oct 2021 08:45:16 +0000 (16:45 +0800)
committerXiubo Li <xiubli@redhat.com>
Wed, 8 Jun 2022 00:45:53 +0000 (08:45 +0800)
commita8cb0fcb16d695745c9875807e1774951f05635f
treea6ccb4588f3b623d0858ddc6615e8dddae7f4e68
parentac16b7bab2d540a02fa5daa3287e999f9635ff5a
client: improve the code of setattr for atime/mtime

When the Fw caps is issued and increasing the atime/mtime, we can
buffer the atime/mtime. And when the Fs caps is issued and they
are not changing we can just ignore them.

In case when recovering the atime/mtime maybe decreased, no matter
the Fsw caps are issued, always send the request immediatelly.

Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit d3d1be4c62a8358569f0fea3a9ac17475c1e173b)
src/client/Client.cc