Whamcloud - gitweb
LU-14989 sec: keep encryption context in xattr cache 48/45148/1
authorSebastien Buisson <sbuisson@ddn.com>
Thu, 7 Oct 2021 14:04:34 +0000 (16:04 +0200)
committerSebastien Buisson <sbuisson@ddn.com>
Thu, 7 Oct 2021 14:48:10 +0000 (16:48 +0200)
commitbc79d1bc90f9d094598985127f8386894d0b7355
tree7a740f51be9b483c0b73b7d697bdf2d6413c06ec
parent1a409a3e6a74685970ee779ebe32917bf51eaf3a
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
lustre/llite/llite_internal.h
lustre/llite/namei.c
lustre/llite/xattr_cache.c