Whamcloud - gitweb
LU-8246 ldlm: Do not grant a lock twice in a race 39/20839/7
authorOleg Drokin <oleg.drokin@intel.com>
Thu, 16 Jun 2016 20:22:28 +0000 (16:22 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Sun, 30 Oct 2016 02:50:33 +0000 (02:50 +0000)
commit7d4106cd9fd9ef48822d19c35a711570be25d5ee
tree044dddb0ae86877b79448005144f1ec7d1488388
parent59fbfa5f3fa925f676636f1b78c986d05cd295bc
LU-8246 ldlm: Do not grant a lock twice in a race

This leads to wrong ldlm pool accounting of granted locks.
Also handle the case of a destroyed lock.

Change-Id: Ied262d6688766e37f71304e6ee6659b48124e7ad
Signed-off-by: Oleg Drokin <oleg.drokin@intel.com>
Reviewed-on: http://review.whamcloud.com/20839
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Niu Yawei <yawei.niu@intel.com>
lustre/ldlm/ldlm_inodebits.c
lustre/ldlm/ldlm_plain.c