Whamcloud - gitweb
LU-10302 ldlm: destroy lock if LVB init fails 77/30477/3
authorJohn L. Hammond <john.hammond@intel.com>
Mon, 11 Dec 2017 19:03:20 +0000 (13:03 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 22 Dec 2017 06:49:35 +0000 (06:49 +0000)
commitc91cb6ee81e7751b719228efa58dc32fdea836e5
tree01bc66a118a2a86e90ae510b91c20e718bfb0d0f
parentcd793b4067b62862185f481cfef7b779927b801f
LU-10302 ldlm: destroy lock if LVB init fails

In ldlm_cli_enqueue_local(), destroy the newly created lock if
ldlm_lvbo_init() fails. Rename sanity test_232() to test_232a(), fix
the fail_loc setting to happen on the correct node, and check that the
OST can be unmounted after the failed write. Add sanity test_232b() to
do the same but for data version since that uses a different LDLM
path.

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: I18e9594b9a2461afbc66128f477d3185a6627bc0
Reviewed-on: https://review.whamcloud.com/30477
Reviewed-by: Quentin Bouget <quentin.bouget@cea.fr>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Mike Pershin <mike.pershin@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/ldlm/ldlm_request.c
lustre/tests/sanity.sh