Whamcloud - gitweb
LU-14542 obd: tunable for sanity grant check 28/42128/7
authorVladimir Saveliev <vlaidimir.saveliev@hpe.com>
Mon, 13 Dec 2021 15:11:58 +0000 (18:11 +0300)
committerOleg Drokin <green@whamcloud.com>
Thu, 6 Jan 2022 22:01:28 +0000 (22:01 +0000)
commit103be254e14d740ad2483169bde7376736dc85a0
treeeeab8dba03386b148575262e48acca6eb70b1437
parentc93a3e5b15b72afc1eeb3f7754c15e078d098769
LU-14542 obd: tunable for sanity grant check

Control on sanity grant check via lctl set_param
*.*.grant_check_threshold is added.  0 is to unconditionally turn
grant checking on.
By default, as before, grant check gets turned off when number of
exports is more than 100.

Change-Id: Ib2505da74f6e3d541bce5def3e90597eda232c58
Signed-off-by: Vladimir Saveliev <vlaidimir.saveliev@hpe.com>
HPE-bug-id: LUS-9827
Reviewed-on: https://review.whamcloud.com/42128
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Alexander Boyko <alexander.boyko@hpe.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/lprocfs_status.h
lustre/include/obd.h
lustre/mdt/mdt_lproc.c
lustre/obdclass/genops.c
lustre/obdclass/lprocfs_status_server.c
lustre/ofd/lproc_ofd.c
lustre/target/tgt_grant.c