Whamcloud - gitweb
LU-13970 llite: add option to disable Lustre inode cache 73/39973/14
authorLai Siyao <lai.siyao@whamcloud.com>
Fri, 18 Sep 2020 09:53:17 +0000 (17:53 +0800)
committerOleg Drokin <green@whamcloud.com>
Sat, 11 Jun 2022 05:30:18 +0000 (05:30 +0000)
commit4aae212bb2aa980be7a11df0543b3ad539a90912
treecf8c9d65d7a4d9a11140e1e926c6a75828fb19f4
parente3843b18d32e58b4b28d16365f68808cf9d7ddbc
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 test_433.

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