Whamcloud - gitweb
LU-13970 llite: add option to disable Lustre inode cache
authorLai Siyao <lai.siyao@whamcloud.com>
Fri, 18 Sep 2020 09:53:17 +0000 (17:53 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Sat, 6 Mar 2021 20:35:10 +0000 (20:35 +0000)
commit14a9e655b6176a5d06435975f9f7f12cf152739c
tree765e50abea8aad4fecbc96bc5eb4792d5c530512
parent43982b91a85e54e891db18597bf02a143803b884
LU-13970 llite: add option to disable Lustre inode cache

A tunable option is added to disable Lustre inode cache:
"llite.*.inode_cache=0" (default =1)

When it's turned off, ll_drop_inode() always returns 1, then the last
iput() will release inode.

Add sanity 427.

Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Change-Id: I0642bdc694dc365a05395c3fae98131e1e7723c6
Reviewed-on: https://review.whamcloud.com/41850
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Andreas Dilger <adilger@whamcloud.com>
lustre/llite/llite_internal.h
lustre/llite/llite_lib.c
lustre/llite/lproc_llite.c
lustre/llite/super25.c
lustre/tests/sanity.sh