Whamcloud - gitweb
LU-14172 lmv: optimize dir shard revalidate 63/40863/3
authorLai Siyao <lai.siyao@whamcloud.com>
Thu, 3 Dec 2020 21:07:01 +0000 (05:07 +0800)
committerOleg Drokin <green@whamcloud.com>
Wed, 9 Dec 2020 07:48:37 +0000 (07:48 +0000)
commitde47c7671f29b2a3a79f6a126b7e01f0b2c5991a
treeea03cb91d31de1577f2bab7b23ff1a3faa8ec5a8
parentff35e27da4c76bc93c7641ef54d425d77e821e9f
LU-14172 lmv: optimize dir shard revalidate

mdt_is_remote_object() will check whether child is directory shard
if parent and child are on different MDTs, which needs to read LMV
from disk, and hurt striped directory stat performance.

This can be optimized, client can just set CROSS_REF flag to do a
cross reference getattr, which avoids lots of checks.

Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Change-Id: Ib2d5a510b27c90a26f979f9cccfd40948e32d91a
Reviewed-on: https://review.whamcloud.com/40863
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Yingjin Qian <qian@ddn.com>
lustre/include/obd.h
lustre/include/obd_class.h
lustre/include/uapi/linux/lustre/lustre_idl.h
lustre/llite/file.c
lustre/llite/llite_lib.c
lustre/lmv/lmv_intent.c
lustre/lmv/lmv_internal.h
lustre/lmv/lmv_obd.c
lustre/mdt/mdt_lib.c