]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
client: skip sync statx when only AT_STATX_DONT_SYNC flag is set 46679/head
authorXiubo Li <xiubli@redhat.com>
Mon, 11 Apr 2022 02:34:16 +0000 (10:34 +0800)
committerXiubo Li <xiubli@redhat.com>
Wed, 15 Jun 2022 01:47:26 +0000 (09:47 +0800)
commitedc1e3496b5084dbfe12238d343d132aa876bc13
treee1f92b77b183870a83ee6fcf9b7501fd2339fed8
parente2a67f2a65553ad45721bb391081bc61aa97e0e9
client: skip sync statx when only AT_STATX_DONT_SYNC flag is set

From the posix and the initial statx supporting commit comments,
the AT_STATX_DONT_SYNC is a lightweight stat flag and the
AT_STATX_FORCE_SYNC is a heaverweight one. And also checked all
the other current usage about these two flags they are all doing
the same, that is only when the AT_STATX_FORCE_SYNC is not set
and the AT_STATX_DONT_SYNC is set will they skip sync retriving
the attributes from storage.

Fixes: https://tracker.ceph.com/issues/55253
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit 2184c3247e546b4f67bee0774e2c97ec2d35a2f3)
src/client/Client.cc