Whamcloud - gitweb
LU-10269 ldlm: allow trybits in waiting queue 43/30343/6
authorMikhal Pershin <mike.pershin@intel.com>
Sat, 2 Dec 2017 08:42:11 +0000 (11:42 +0300)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 4 Jan 2018 02:48:24 +0000 (02:48 +0000)
commit916bfe080520bdfb9a8d4e35ce7095c5b632f4eb
tree5b05da8b517906951f8d253e557b65c351fb615b
parent42e40555f250b83730d233dc5e22fd1f9396ccfe
LU-10269 ldlm: allow trybits in waiting queue

Lock trybits can be kept while lock is waiting and each new
lock filters trybits of locks in the waiting queue. When lock
if granted finally remaining trybits are added to the granted
bits. Therefore trybits can be granted for blocking lock if
no other locks take these bits while lock is waiting.

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