Whamcloud - gitweb
LU-14172 lmv: optimize dir shard revalidate 75/40875/3
authorLai Siyao <lai.siyao@whamcloud.com>
Thu, 3 Dec 2020 21:07:01 +0000 (05:07 +0800)
committerOleg Drokin <green@whamcloud.com>
Mon, 7 Dec 2020 06:05:06 +0000 (06:05 +0000)
commit94ec63ed67c6f09a2b15b2227ef6b189df623f4d
treec16de109ec39731cfb96b87a3acdb754c3a84c3e
parent76dab48078d1ecfc9e61992da7ad7e92c3ab9f7a
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.

Lustre-change: https://review.whamcloud.com/40863/

Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Change-Id: Ib2d5a510b27c90a26f979f9cccfd40948e32d91a
Signed-off-by: Minh Diep <mdiep@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/40875
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