Whamcloud - gitweb
LU-11695 som: disabling xattr cache for LSOM on client 52/49952/3
authorQian Yingjin <qian@ddn.com>
Wed, 8 Mar 2023 20:16:53 +0000 (12:16 -0800)
committerOleg Drokin <green@whamcloud.com>
Tue, 28 Mar 2023 07:09:30 +0000 (07:09 +0000)
commitdcd842e870a099e18a9afcb817f382648c96bed0
tree1b79b6ca1b68bd5eaad939e21f252e5cf3012750
parentf8484d49fd6dc97b6d995a42b4e6cee86f762526
LU-11695 som: disabling xattr cache for LSOM on client

To obtain uptodate LSOM data, currently a client needs to set
llite.*.xattr_cache =0 to disable the xattr cache on client
completely. This leads that other kinds of xattr can not be cached
on the client too.
This patch introduces a heavy-weight solution to disable caching
only for LSOM xattr data ("trusted.som") on client.

Lustre-change: https://review.whamcloud.com/33711
Lustre-commit: 192902851d73ec246af92a2ff7be8f23b08c4343

Signed-off-by: Qian Yingjin <qian@ddn.com>
Change-Id: Iab5ef3030b05ac09184d01f2a3a8ed92ff1cf26b
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Li Xi <lixi@ddn.com>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/49952
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/llite/xattr.c
lustre/llite/xattr_cache.c
lustre/tests/sanity.sh