Whamcloud - gitweb
LU-14989 sec: keep encryption context in xattr cache
authorSebastien Buisson <sbuisson@ddn.com>
Thu, 7 Oct 2021 14:04:34 +0000 (16:04 +0200)
committerAndreas Dilger <adilger@whamcloud.com>
Sun, 10 Oct 2021 22:02:42 +0000 (22:02 +0000)
commit0e8d6743fede11a0734a592848b681d3a495e877
treefc9938ec505181bf450c45ffcb23cd29fcd95797
parentcd02cb1d66d5d37e6600ce5a7d7188e3db9ae9f6
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.

Lustre-change: https://review.whamcloud.com/45148
Lustre-commit: TBD (bc79d1bc90f9d094598985127f8386894d0b7355)

Fixes: bf291f2212 ("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/45149
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/llite/llite_internal.h
lustre/llite/namei.c
lustre/llite/xattr_cache.c