Whamcloud - gitweb
LU-13599 mdt: add test for rs_lock limit exceeding 94/39194/4
authorMikhail Pershin <mpershin@whamcloud.com>
Fri, 26 Jun 2020 17:19:05 +0000 (20:19 +0300)
committerOleg Drokin <green@whamcloud.com>
Tue, 8 Sep 2020 18:09:18 +0000 (18:09 +0000)
commit3448cdc16e361d2504f2f5b0982c92d7a0de933d
tree8273e229840d09a4e2ae1125ad3df494e94a4af8
parentf2637c8f2df1492645404706bef3753442f4cc4b
LU-13599 mdt: add test for rs_lock limit exceeding

The check conditions in mdt_link_parents_lock() considers there
can be total 6 local locks but in fact when object has hard links
then it is regular file and it may have maximum 5 local locks.

Patch updates that check conditions for rs_locks as small
improvement and ports test for rs_locks limit from 2.12.

Signed-off-by: Mikhail Pershin <mpershin@whamcloud.com>
Change-Id: I98cca84825ce5789094fbceb5d1f7975410d134b
Reviewed-on: https://review.whamcloud.com/39194
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Lai Siyao <lai.siyao@whamcloud.com>
Reviewed-by: Stephane Thiell <sthiell@stanford.edu>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/mdt/mdt_reint.c
lustre/tests/sanity.sh