Whamcloud - gitweb
LU-14989 sec: keep encryption context in xattr cache 48/45148/2
authorSebastien Buisson <sbuisson@ddn.com>
Thu, 7 Oct 2021 14:04:34 +0000 (16:04 +0200)
committerOleg Drokin <green@whamcloud.com>
Sun, 17 Oct 2021 18:11:16 +0000 (18:11 +0000)
commit14b37c763c5751faf18d00287c16bdcbe0f8d542
treeefdd6c8eb0cebd8343d40f229c88f8c2db96158e
parent06e586016d3acc490f922e43e3aee6b8112a2803
LU-14989 sec: keep encryption context in xattr cache

When an inode is being cleared, its xattr cache must be completely
wiped. But in case of lock cancel, we want to keep the encryption
context, as further processing might need to check it.

Fixes: 1faf54e8bf ("LU-14989 sec: access to enc file's xattrs")
Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: I8a2f4497129353a7fbf86cdaaa13fae6e0988790
Reviewed-on: https://review.whamcloud.com/45148
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Patrick Farrell <pfarrell@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/llite/llite_internal.h
lustre/llite/namei.c
lustre/llite/xattr_cache.c