Whamcloud - gitweb
LU-10269 ldlm: fix the issues introduced by try bits 46/30246/11
authorJinshan Xiong <jinshan.xiong@intel.com>
Mon, 13 Nov 2017 05:36:33 +0000 (05:36 +0000)
committerOleg Drokin <oleg.drokin@intel.com>
Sun, 17 Dec 2017 06:18:54 +0000 (06:18 +0000)
commit4f50273a3ed89bc00d5f36fc2606cc40680f450f
tree572a535174fd3b3ce2a27bf9db944cc830e8ab42
parent4f2a5d5887492da9abe320074511811415e0a06c
LU-10269 ldlm: fix the issues introduced by try bits

Try to grant optinal try_bits if lock is not blocked
and to be granted immediately otherwise trybits are cleared,
therefore there are no locks with trybits in both granted and
waiting queue.

Also mdt_object_lock_try() is changed to don't return negative for
try lock only case.

Test-Parameters: mdscount=1 mdtcount=1 testlist=racer,racer,racer
Signed-off-by: Mikhal Pershin <mike.pershin@intel.com>
Change-Id: If3f5734355511ad1af71d5996026d04c60f3e8c1
Reviewed-on: https://review.whamcloud.com/30246
Tested-by: Jenkins
Reviewed-by: Jinshan Xiong <jinshan.xiong@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/ldlm/ldlm_inodebits.c
lustre/mdt/mdt_handler.c
lustre/mdt/mdt_open.c
lustre/mdt/mdt_reint.c
lustre/tests/sanityn.sh