Whamcloud - gitweb
LU-13437 mdc: remote object support getattr from cache 51/40451/2
authorLai Siyao <lai.siyao@whamcloud.com>
Sat, 10 Oct 2020 14:34:19 +0000 (22:34 +0800)
committerOleg Drokin <green@whamcloud.com>
Sat, 7 Nov 2020 04:15:56 +0000 (04:15 +0000)
commit23c05e821da13c6942453be1c9e167c5cafc40e7
treeaf45f6b19484a1a45f107f864270822bddc27b89
parentd3dfcba36ea04809d09d38ccd97da053be85404c
LU-13437 mdc: remote object support getattr from cache

For historical reason, IT_GETATTR lock revalidate matches
LOOKUP|UPDATE|PERM lock bits because for MDS < 2.4, permission is
protected by LOOKUP lock, but this will cause remote object not
able to match the cached lock because LOOKUP and UPDATE lock are
fetched separately.

Add sanity 803b, and rename 803 to 803a.

Lustre-change: https://review.whamcloud.com/40218
Lustre-commit: 72a1ca996e3a35ce3e4b7e517f77ff7ac83ccdd5

Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Change-Id: I3ac38fe34472736849307bb7f1eebb5de9343a5c
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Mike Pershin <mpershin@whamcloud.com>
Signed-off-by: Minh Diep <mdiep@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/40451
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/mdc/mdc_locks.c
lustre/tests/sanity.sh