Whamcloud - gitweb
LU-14677 llite: move env contexts to ll_inode_info level
authorSebastien Buisson <sbuisson@ddn.com>
Fri, 9 Jul 2021 13:41:34 +0000 (15:41 +0200)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 10 Sep 2021 21:30:52 +0000 (21:30 +0000)
commitb5b671df178f9c8b9c0ae4e6279f20049463a6be
tree3874e733568c2b78aef6225f096381232683ce04
parentfe8e272c07d873160e260ba159cd9c521e6d24e7
LU-14677 llite: move env contexts to ll_inode_info level

Contrary to file, inode is always available, so move the list of
env contexts from the file data to the ll_inode_info level.
This is needed because we will have to handle env properties in
ll_get_context() and ll_xattr_list()/ll_listxattr().
This also requires changing lli_lock from a spinlock to an rwlock.

Lustre-change: https://review.whamcloud.com/44198
Lustre-commit: TBD (932007c91333117b7b0905ce5601aafc9b3bdd4e)

Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: I478d2a8eabfcb09074ba52601f05840d047a6da2
Reviewed-on: https://review.whamcloud.com/44199
Reviewed-by: Patrick Farrell <pfarrell@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/llite/file.c
lustre/llite/llite_internal.h
lustre/llite/llite_lib.c
lustre/llite/llite_mmap.c
lustre/llite/rw.c
lustre/llite/rw26.c
lustre/llite/xattr.c