Whamcloud - gitweb
LU-16026 llite: always enable remote subdir mount
authorLai Siyao <lai.siyao@whamcloud.com>
Sun, 28 Aug 2022 19:33:29 +0000 (15:33 -0400)
committerAndreas Dilger <adilger@whamcloud.com>
Sat, 21 Jan 2023 02:52:43 +0000 (02:52 +0000)
commitf6dbf8127c581164a401d4cd39535e7965c9e182
tree84afa5f495b3a855946b99f7310469166b8417fa
parent277b65190ae806d3eb7d88f7feccaa0ab398be7d
LU-16026 llite: always enable remote subdir mount

For historical reason, ROOT is revalidated with IT_LOOKUP in
.permission to ensure permission is update to date because ROOT is
never looked up. But ROOT FID and layout is not changeable, it's
PERM lock that should be revalidated, i.e., revalidate with
IT_GETATTR instead of IT_LOOKUP.

Since PERM|UPDATE lock is on the MDT where object is located, client
can cache this lock, therefore remote subdir mount doesn't need to
lookup ROOT in each file access.

Deprecate mdt.*.enable_remote_subdir_mount.

Per http://review.whamcloud.com/19195, replace 'df' with 'lfs df' in
sanity 228b since the former doesn't support transparent recovery.

Add sanity 247h.

Lustre-change: https://review.whamcloud.com/48535
Lustre-commit: 6f490275b0e0455a431707775d685fb3df1d322d

Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Change-Id: I66f8ee347f6c01a8a154245b10a1d93539ea13b8
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/49673
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/llite/file.c
lustre/mdt/mdt_handler.c
lustre/mdt/mdt_internal.h
lustre/mdt/mdt_lproc.c
lustre/tests/sanity.sh