Whamcloud - gitweb
LU-13437 mdc: remote object support getattr from cache 18/40218/4
authorLai Siyao <lai.siyao@whamcloud.com>
Sat, 10 Oct 2020 14:34:19 +0000 (22:34 +0800)
committerOleg Drokin <green@whamcloud.com>
Thu, 29 Oct 2020 04:30:41 +0000 (04:30 +0000)
commit72a1ca996e3a35ce3e4b7e517f77ff7ac83ccdd5
tree818247ee361d17f5d0db53c0bb9e64ce0dc602b5
parent9397f8cf866ad363bc3908b248f41adfa5bd8f1c
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.

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